From 4cfd2221f4278ea7d5f12d859b65080a12d75b65 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 24 Dec 2020 17:02:28 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E4=BC=98=E5=8C=96=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E5=AF=86=E7=A0=81=E7=9A=84=E4=BB=A3=E7=A0=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/accountBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/accountBox.vue b/nezha-fronted/src/components/common/rightBox/accountBox.vue index 608676d8b..e2b9b9a99 100644 --- a/nezha-fronted/src/components/common/rightBox/accountBox.vue +++ b/nezha-fronted/src/components/common/rightBox/accountBox.vue @@ -113,9 +113,9 @@ data() { let validatePassword = (rule, value, callback) => { // 确认密码的二次校验 console.log(value); - if (value === ''&& this.editUser.password) { + if (value === ''&& !this.editUser.password) { callback(new Error(this.$t('validate.required'))); - }else if(!this.editUser.password){ + }else if(this.editUser.password){ callback(new Error(this.$t('config.account.inputConfirmPwd'))); }else if (value !== this.editUser.password) { callback(new Error(this.$t('config.account.confirmPwdErr')));