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

@@ -66,7 +66,11 @@ export default {
submit() {
this.$refs["form"].validate(valid => {
if (valid) {
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => {
const params = {
oldPassword: this.user.oldPassword,
newPassword: this.user.newPassword
}
updateUserPwd(params).then(response => {
this.$modal.msgSuccess("修改成功,请重新登录!");
if (response.code == 200) {
//清除登录缓存