update
This commit is contained in:
@@ -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, {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user