From 378585cdd294df8fe18ad99d9a7e30e835d52ebd Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Thu, 4 May 2023 21:57:43 +0800 Subject: [PATCH] add auto refresh for contest rank. --- src/oj/contest/pages/rank.vue | 12 +++++++++++- src/oj/problem/components/Form.vue | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/oj/contest/pages/rank.vue b/src/oj/contest/pages/rank.vue index ed8c318..5e03420 100644 --- a/src/oj/contest/pages/rank.vue +++ b/src/oj/contest/pages/rank.vue @@ -6,6 +6,8 @@ import AcAndSubmission from "../components/AcAndSubmission.vue" import { getContestProblems, getContestRank } from "oj/api" import { ContestRank, ProblemFiltered } from "~/utils/types" import { secondsToDuration } from "utils/functions" +import { ContestStatus } from "~/utils/constants" +import { useContestStore } from "~/oj/store/contest" interface Props { contestID: string @@ -15,6 +17,9 @@ const props = defineProps() const route = useRoute() const router = useRouter() + +const contestStore = useContestStore() + const total = ref(0) const data = ref([]) const chart = ref([]) @@ -196,7 +201,12 @@ onMounted(() => { :data="data" /> - + diff --git a/src/oj/problem/components/Form.vue b/src/oj/problem/components/Form.vue index 2a2699d..e172924 100644 --- a/src/oj/problem/components/Form.vue +++ b/src/oj/problem/components/Form.vue @@ -92,7 +92,7 @@ function changeLanguage(v: LANGUAGE) { 提交信息 - +