后台筛选管理员

This commit is contained in:
2025-04-30 09:52:07 +08:00
parent 27a63e4bc7
commit 40a9a1414b
4 changed files with 266 additions and 204 deletions

View File

@@ -80,9 +80,14 @@ export function getContestProblem(id: number) {
}
// 用户列表
export function getUserList(offset = 0, limit = 10, keyword: string) {
export function getUserList(
offset = 0,
limit = 10,
admin = false,
keyword: string,
) {
return http.get("admin/user", {
params: { paging: true, offset, limit, keyword },
params: { paging: true, offset, limit, keyword, admin },
})
}