diff --git a/chenhai-ui/src/views/login.vue b/chenhai-ui/src/views/login.vue index 1dc3346..2317532 100644 --- a/chenhai-ui/src/views/login.vue +++ b/chenhai-ui/src/views/login.vue @@ -325,6 +325,21 @@ export default { this.open = true }, + // 重置注册表单 + resetRegisterForm() { + this.registerForm = { + phone: "", + password: "", + confirmPassword: "", + clientType: "vet-pc" + }; + this.registerPwdVisible = false; + this.confirmPwdVisible = false; + if (this.$refs.registerForm) { + this.$refs.registerForm.resetFields(); + } + }, + handleRegister() { this.$refs.registerForm.validate(valid => { if (valid) { @@ -337,7 +352,9 @@ export default { this.open = false; this.registerloading = false; this.resetRegisterForm(); - }).catch(() => {}) + }).catch(() => { + this.registerloading = false; + }) }) } }) diff --git a/chenhai-ui/src/views/syd.vue b/chenhai-ui/src/views/syd.vue index 7dc56a7..640d9b8 100644 --- a/chenhai-ui/src/views/syd.vue +++ b/chenhai-ui/src/views/syd.vue @@ -269,7 +269,7 @@ - + - + - + - +