This commit is contained in:
2023-05-05 12:24:59 +08:00
2 changed files with 2 additions and 4 deletions

View File

@@ -25,8 +25,6 @@ function goSubmissions() {
router.push({ name, query: { problem: problem.value!._id } }) router.push({ name, query: { problem: problem.value!._id } })
} }
function goTestCat() {}
function goEdit() { function goEdit() {
const data = router.resolve("/admin/problem/edit/" + problem.value!.id) const data = router.resolve("/admin/problem/edit/" + problem.value!.id)
window.open(data.href, "_blank") window.open(data.href, "_blank")
@@ -91,8 +89,8 @@ function changeLanguage(v: LANGUAGE) {
</template> </template>
</n-button> </n-button>
</n-dropdown> </n-dropdown>
<n-button v-if="isDesktop" @click="goSubmissions">提交信息</n-button>
<TestCat v-if="isDesktop" /> <TestCat v-if="isDesktop" />
<n-button v-if="isDesktop" @click="goSubmissions">提交信息</n-button>
<n-button <n-button
v-if="isDesktop && userStore.isSuperAdmin" v-if="isDesktop && userStore.isSuperAdmin"
type="warning" type="warning"

View File

@@ -27,7 +27,7 @@ function clear() {
@clickoutside="clear" @clickoutside="clear"
> >
<template #trigger> <template #trigger>
<n-button>输入输出</n-button> <n-button>自测</n-button>
</template> </template>
<n-space vertical> <n-space vertical>
<n-input type="textarea" v-model:value="input" /> <n-input type="textarea" v-model:value="input" />