fix admin.

This commit is contained in:
2023-03-14 12:25:48 +08:00
parent b3ec4ef63e
commit 477cece1e7
9 changed files with 153 additions and 79 deletions

View File

@@ -44,9 +44,7 @@ export async function getProblemList(
params[element] = searchParams[element]
}
})
const res = await http.get("problem", {
params,
})
const res = await http.get("problem", { params })
return {
results: res.data.results.map(filterResult),
total: res.data.total,