fix
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-17 20:48:02 +08:00
parent 5127ded7d5
commit d32af7e6e7

View File

@@ -66,21 +66,15 @@ const languageOptions: SelectOption[] = [
async function listSubmissions() { async function listSubmissions() {
if (query.page < 1) query.page = 1 if (query.page < 1) query.page = 1
const offset = query.limit * (query.page - 1) const offset = query.limit * (query.page - 1)
try { const res = await getSubmissions({
const res = await getSubmissions({ ...query,
...query, offset,
offset, problem_id: query.problem,
problem_id: query.problem, contest_id: <string>route.params.contestID ?? "",
contest_id: <string>route.params.contestID ?? "", language: query.language,
language: query.language, })
}) submissions.value = res.data.results
submissions.value = res.data.results total.value = res.data.total
total.value = res.data.total
} catch (error: any) {
if (error.data === "Problem doesn't exist") {
message.error("题目不存在")
}
}
} }
async function getTodayCount() { async function getTodayCount() {