fix
Deploy / deploy (push) Canceled after 0s

This commit is contained in:
xuyue committed 2026-10-08 12:29:35 +08:00
1 parent af63b05d4b
commit bde387e8bc
3 files changed
+20 -3

No files matched your search

+11
View File
@@ -74,6 +74,17 @@ export async function getProblemList(
}
}
// 比赛「从题库中选择」用:列所有可见的公开题,不只是自己创建的
export async function getLibraryProblemList(offset = 0, limit = 10, keyword: string) {
const res = await api.get<AdminProblemList>("admin/problems", {
params: { offset, limit, keyword, library: 1 },
})
return {
results: res.results.map(toAdminProblemRow),
total: res.total,
}
}
export function deleteProblem(id: number) {
return api.delete(`admin/problems/${id}`)
}