This commit is contained in:
pushuo 2022-09-01 17:31:45 +08:00
parent 1c2bb06b0d
commit 848b091720
1 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@
{type: 'email', message: '{{ __('shop/login.email_err') }}', trigger: 'change'},
],
password: [
{required: true, validator: validatePass, trigger: 'change'}
{required: true, trigger: 'change'}
],
password_confirmation: [
{required: true, validator: validatePass2, trigger: 'change'}
@ -158,8 +158,8 @@
_data = this.registerForm, url = '/register'
}
this.$refs['loginForm'].resetFields();
this.$refs['registerForm'].resetFields();
this.$refs['loginForm'].clearValidate();
this.$refs['registerForm'].clearValidate();
this.$refs[form].validate((valid) => {
if (!valid) {