use default props
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-06-06 05:49:02 -06:00
parent 31d7f4d274
commit 4b05086ba1
13 changed files with 63 additions and 80 deletions

View File

@@ -67,7 +67,7 @@
{{ content }}
</n-form-item>
<n-button
v-if="hasCommented && props.showStatistics"
v-if="hasCommented && showStatistics"
type="primary"
@click="getComments"
>
@@ -77,7 +77,7 @@
提交
</n-button>
</n-form>
<div v-if="props.showStatistics">
<div v-if="showStatistics">
<n-descriptions
class="list"
v-if="count"
@@ -117,9 +117,7 @@ interface Props {
showStatistics?: boolean
}
const props = withDefaults(defineProps<Props>(), {
showStatistics: true,
})
const { showStatistics = true } = defineProps<Props>()
const userStore = useUserStore()
const problemStore = useProblemStore()