管理后台前后端逻辑、UI美化
This commit is contained in:
@@ -20,5 +20,5 @@ export const updateUser = (
|
||||
) =>
|
||||
apiPatch<UserInfo>(`/api/v1/users/${userId}`, payload);
|
||||
|
||||
export const deleteUser = (userId: string, payload: { admin_password: string }) =>
|
||||
apiDelete<void>(`/api/v1/users/${userId}`, { data: payload });
|
||||
export const deleteUser = (userId: string) =>
|
||||
apiDelete<void>(`/api/v1/users/${userId}`);
|
||||
|
||||
Reference in New Issue
Block a user