From d3d1a05afbdd7ffa49e4d0ccf9360372e2310aa8 Mon Sep 17 00:00:00 2001 From: Ryan SU <1137661202@qq.com> Date: Sat, 3 Dec 2022 08:16:39 +0800 Subject: [PATCH] fix: delete user api --- src/api/sys/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/sys/user.ts b/src/api/sys/user.ts index aae5895a..b27c3268 100644 --- a/src/api/sys/user.ts +++ b/src/api/sys/user.ts @@ -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( + return defHttp.post( { url: Api.DeleteUser, params: params }, { errorMessageMode: mode,