update 优化 涉及到用户密码的接口 均设置请求加密

This commit is contained in:
疯狂的狮子Li 2023-08-14 10:36:59 +08:00
parent f3195be732
commit 9087fad3fe
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,9 @@ export function addTenant(data: TenantForm) {
return request({ return request({
url: '/system/tenant', url: '/system/tenant',
method: 'post', method: 'post',
headers: {
isEncrypt: true
},
data: data data: data
}); });
} }

View File

@ -74,6 +74,9 @@ export const resetUserPwd = (userId: string | number, password: string) => {
return request({ return request({
url: '/system/user/resetPwd', url: '/system/user/resetPwd',
method: 'put', method: 'put',
headers: {
isEncrypt: true
},
data: data data: data
}); });
}; };
@ -130,6 +133,9 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => {
return request({ return request({
url: '/system/user/profile/updatePwd', url: '/system/user/profile/updatePwd',
method: 'put', method: 'put',
headers: {
isEncrypt: true
},
params: data params: data
}); });
}; };