This commit is contained in:
2025-03-18 20:29:53 +08:00
parent a76b2f9bc9
commit 16fb09021d
2 changed files with 8 additions and 5 deletions

View File

@@ -1,9 +1,6 @@
<template> <template>
<n-flex align="center" class="corner"> <n-flex align="center" class="corner">
<n-button secondary v-if="!show" @click="showTutorial">教程</n-button> <n-button secondary v-if="!show" @click="showTutorial">教程</n-button>
<n-button secondary @click="$router.push({ name: 'submissions' })">
查看
</n-button>
<template v-if="user.loaded && authed"> <template v-if="user.loaded && authed">
<n-button <n-button
type="primary" type="primary"
@@ -70,7 +67,7 @@ const menu = computed(() => [
}), }),
}, },
{ {
label: "我的提交", label: "提交列表",
key: "submissions", key: "submissions",
icon: () => icon: () =>
h(Icon, { h(Icon, {

View File

@@ -15,7 +15,13 @@
</template> </template>
<n-rate :size="30" @update:value="updateScore" /> <n-rate :size="30" @update:value="updateScore" />
</n-popover> </n-popover>
<n-button secondary type="info">智能打分</n-button> <n-button
v-if="!submission.score && (roleAdmin || roleSuper)"
secondary
type="info"
>
智能打分
</n-button>
</template> </template>
</n-flex> </n-flex>
</n-flex> </n-flex>