@@ -66,7 +66,6 @@ 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,
|
||||
@@ -76,11 +75,6 @@ async function listSubmissions() {
|
||||
})
|
||||
submissions.value = res.data.results
|
||||
total.value = res.data.total
|
||||
} catch (error: any) {
|
||||
if (error.data === "Problem doesn't exist") {
|
||||
message.error("题目不存在")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function getTodayCount() {
|
||||
|
||||
Reference in New Issue
Block a user