update 优化 涉及到用户密码的接口 均设置请求加密
This commit is contained in:
parent
f3195be732
commit
9087fad3fe
@ -24,6 +24,9 @@ export function addTenant(data: TenantForm) {
|
||||
return request({
|
||||
url: '/system/tenant',
|
||||
method: 'post',
|
||||
headers: {
|
||||
isEncrypt: true
|
||||
},
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
@ -74,6 +74,9 @@ export const resetUserPwd = (userId: string | number, password: string) => {
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
headers: {
|
||||
isEncrypt: true
|
||||
},
|
||||
data: data
|
||||
});
|
||||
};
|
||||
@ -130,6 +133,9 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => {
|
||||
return request({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
headers: {
|
||||
isEncrypt: true
|
||||
},
|
||||
params: data
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user