add countdown.

This commit is contained in:
2023-03-03 12:46:58 +08:00
parent b07489723c
commit 18a20c04c5
10 changed files with 414 additions and 368 deletions

View File

@@ -2,6 +2,7 @@
import { DropdownOption } from "naive-ui"
import { useContestStore } from "oj/store/contest"
import { isDesktop } from "~/shared/composables/breakpoints"
import { ContestStatus } from "~/utils/constants"
const route = useRoute()
const router = useRouter()
@@ -10,7 +11,7 @@ const contestStore = useContestStore()
const contestMenuVisible = computed(() => {
if (contestStore.isContestAdmin) return true
if (!contestStore.isPrivate) {
// TODO:这里没有完成
return contestStore.contestStatus !== ContestStatus.not_started
}
return contestStore.access
})