添加后端评论的管理页面
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
v-if="hasCommented"
|
||||
icon="noto:star"
|
||||
:width="24"
|
||||
v-for="i in description_rating"
|
||||
v-for="(_, i) in description_rating"
|
||||
:key="i"
|
||||
/>
|
||||
<n-rate v-else size="large" v-model:value="description_rating" />
|
||||
</n-form-item>
|
||||
@@ -36,7 +37,8 @@
|
||||
v-if="hasCommented"
|
||||
icon="noto:star"
|
||||
:width="24"
|
||||
v-for="i in difficulty_rating"
|
||||
v-for="(_, i) in difficulty_rating"
|
||||
:key="i"
|
||||
/>
|
||||
<n-rate v-else size="large" v-model:value="difficulty_rating" />
|
||||
</n-form-item>
|
||||
@@ -50,7 +52,8 @@
|
||||
v-if="hasCommented"
|
||||
icon="noto:star"
|
||||
:width="24"
|
||||
v-for="i in difficulty_rating"
|
||||
v-for="(_, i) in difficulty_rating"
|
||||
:key="i"
|
||||
/>
|
||||
<n-rate v-else size="large" v-model:value="comprehensive_rating" />
|
||||
</n-form-item>
|
||||
|
||||
@@ -212,7 +212,9 @@ watch(
|
||||
origin: { x: 0.5, y: 0.4 },
|
||||
})
|
||||
// 题目在第一次完成之后,弹出点评框
|
||||
showCommentPanel()
|
||||
if (!contestID) {
|
||||
showCommentPanel()
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user