fix contest info.

This commit is contained in:
2023-02-10 10:45:36 +08:00
parent c80352b245
commit 951b4c768e
4 changed files with 326 additions and 324 deletions

View File

@@ -2,7 +2,6 @@
import { parseTime } from "utils/functions"
import { useContestStore } from "oj/store/contest"
import ContestTypeVue from "./ContestType.vue"
import { isDesktop } from "~/shared/composables/breakpoints"
const contestStore = useContestStore()
</script>
@@ -17,7 +16,8 @@ const contestStore = useContestStore()
<template #trigger>
<n-button>比赛信息</n-button>
</template>
<n-descriptions bordered :column="isDesktop ? 4 : 1">
<div v-html="contestStore.contest.description"></div>
<n-descriptions bordered label-placement="left" :column="1">
<n-descriptions-item label="开始时间">
{{
parseTime(contestStore.contest.start_time, "YYYY年M月D日 hh:mm:ss")

View File

@@ -14,7 +14,7 @@ const isPrivate = computed(
</script>
<template>
<n-tag :type="isPrivate ? 'error' : 'default'">
<n-tag :type="isPrivate ? 'error' : 'info'">
{{ isPrivate ? "需要密码" : "公开" }}
</n-tag>
</template>