fix admin.

This commit is contained in:
xuyue committed 2023-03-14 12:25:48 +08:00
1 parent b3ec4ef63e
commit 477cece1e7
9 files changed
+153 -79

No files matched your search

+1 -3
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,