batch update.

This commit is contained in:
2023-02-01 23:53:27 +08:00
parent 449ada30c2
commit f098c54afb
10 changed files with 55 additions and 55 deletions

View File

@@ -4,7 +4,7 @@ import { Contest, Problem } from "~/utils/types"
import {
getContest,
getContestAccess,
getContestProblem,
getContestProblems,
checkContestPassword,
} from "../api"
@@ -51,7 +51,7 @@ export const useContestStore = defineStore("contest", () => {
async function _getProblems(contestID: string) {
problems.value = []
try {
problems.value = await getContestProblem(contestID)
problems.value = await getContestProblems(contestID)
} catch (err) {
problems.value = []
toggleAccsess(false)