From 4b111a6cca666fddb3b3daaccfe3068ab4a27b42 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 9 Aug 2021 14:47:06 +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 325f772..e8a3758 100644 --- a/src/pages/personalCenter.vue +++ b/src/pages/personalCenter.vue @@ -339,10 +339,11 @@ export default { if(this.passwordForm.newPassword.length < 6 || this.passwordForm.reNewPassword.length < 6) return this.$message.warning('请输入6位数以上的密码') if(this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return this.$message.warning('输入的新密码不一致,请重新确认') if(this.curPassword === this.passwordForm.newPassword) return this.$message.warning('原密码跟新密码不能一致') + 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 => {