diff --git a/nezha-fronted/src/components/common/rightBox/accountBox.vue b/nezha-fronted/src/components/common/rightBox/accountBox.vue index e2b9b9a99..20f234f1f 100644 --- a/nezha-fronted/src/components/common/rightBox/accountBox.vue +++ b/nezha-fronted/src/components/common/rightBox/accountBox.vue @@ -115,7 +115,7 @@ console.log(value); if (value === ''&& !this.editUser.password) { callback(new Error(this.$t('validate.required'))); - }else if(this.editUser.password){ + }else if(value === ''&&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')));