完成admin-user-get

This commit is contained in:
2025-05-12 10:45:56 +08:00
parent 53a0f4456b
commit 0d9ff2bfa6
6 changed files with 61 additions and 18 deletions

View File

@@ -9,15 +9,6 @@ export function useUserList(params?: UserListParams) {
const { data, error, isLoading, mutate } = useSWR<UserListResponse>(
['/api/admin/user', params],
() => list(params),
{
onError: (err) => {
if (err instanceof ApiError) {
toast.error(err.message)
} else {
toast.error('请求失败')
}
}
}
)
return {