优化登录注册报错提示

This commit is contained in:
pushuo 2022-09-01 16:27:43 +08:00
parent 52f40302fd
commit 2c999f65eb
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,9 @@
_data = this.registerForm, url = '/register'
}
this.$refs['loginForm'].resetFields();
this.$refs['registerForm'].resetFields();
this.$refs[form].validate((valid) => {
if (!valid) {
layer.msg('{{ __('shop/login.check_form') }}', () => {})