diff --git a/src/oj/submission/list.vue b/src/oj/submission/list.vue index 88f96f9..d77b3f4 100644 --- a/src/oj/submission/list.vue +++ b/src/oj/submission/list.vue @@ -66,21 +66,15 @@ const languageOptions: SelectOption[] = [ async function listSubmissions() { if (query.page < 1) query.page = 1 const offset = query.limit * (query.page - 1) - try { - const res = await getSubmissions({ - ...query, - offset, - problem_id: query.problem, - contest_id: route.params.contestID ?? "", - language: query.language, - }) - submissions.value = res.data.results - total.value = res.data.total - } catch (error: any) { - if (error.data === "Problem doesn't exist") { - message.error("题目不存在") - } - } + const res = await getSubmissions({ + ...query, + offset, + problem_id: query.problem, + contest_id: route.params.contestID ?? "", + language: query.language, + }) + submissions.value = res.data.results + total.value = res.data.total } async function getTodayCount() {