Skip to content

Commit

Permalink
fix: delete user api
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Dec 3, 2022
1 parent bf119f7 commit d3d1a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/sys/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ export const createOrUpdateUser = (params: UserInfo, mode: ErrorMessageMode = 'm

/**
* author: Ryan Su
* @description: delete user
* @description: delete a user
*/
export const deleteUser = (params: BaseIdReq, mode: ErrorMessageMode = 'message') => {
return defHttp.delete<BaseResp>(
return defHttp.post<BaseResp>(
{ url: Api.DeleteUser, params: params },
{
errorMessageMode: mode,
Expand Down

0 comments on commit d3d1a05

Please sign in to comment.