fix(修改密码):修改密码传参方式修改

This commit is contained in:
baiying
2025-05-20 16:52:26 +08:00
parent 7f58d3e12b
commit 2ad5d6ff28
2 changed files with 8 additions and 7 deletions

View File

@@ -102,15 +102,12 @@ export function updateUserProfile(data) {
}
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
const data = {
oldPassword,
newPassword
}
export function updateUserPwd(data) {
return request({
url: '/system/user/profile/updatePwd',
method: 'put',
params: data
data: data
})
}