add contest problem.

This commit is contained in:
2023-01-31 15:38:29 +08:00
parent 6aa722c64a
commit d5d6491d6d
16 changed files with 210 additions and 89 deletions

View File

@@ -117,6 +117,9 @@ export function checkContestPassword(contestID: string, password: string) {
})
}
export function getContestProblem(contestID: string) {
return http.get("contest/problem", { params: { contest_id: contestID } })
export async function getContestProblem(contestID: string) {
const res = await http.get("contest/problem", {
params: { contest_id: contestID },
})
return res.data.map(filterResult)
}