From 776073b960e9d7a166c9626e686f03e6de4972f7 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 9 Aug 2021 14:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/personalcenter.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/personalcenter.vue b/src/pages/personalcenter.vue index 32027a2..219eb90 100644 --- a/src/pages/personalcenter.vue +++ b/src/pages/personalcenter.vue @@ -337,10 +337,11 @@ export default { if(this.passwordForm.newPassword.length < 6 || this.passwordForm.reNewPassword.length < 6) return this.warningMsg('请输入6位数以上的密码') if(this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return this.warningMsg('输入的新密码不一致,请重新确认') if(this.curPassword === this.passwordForm.newPassword) return this.warningMsg('原密码跟新密码不能一致') + if(this.curPassword !== this.passwordForm.password) return this.warningMsg('原密码不正确,请重新确认') let data = { userId: this.personalInformation.userId, - password: this.passwordForm.password + password: this.passwordForm.newPassword } this.$post(this.api.userinfoUpdate,data) .then(res => {