修改密码

master
yujialong 3 years ago
parent 625c64a5f6
commit 4b111a6cca
  1. 3
      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 => {

Loading…
Cancel
Save