From d42854eeeb4914892604dd05e8144da8b8a46416 Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Thu, 23 May 2024 11:48:52 +0800 Subject: [PATCH] [Core] [User] Fix user login registration loading status --- core/datacap-ui/src/views/auth/signin/AuthSignin.vue | 6 +++++- core/datacap-ui/src/views/auth/signup/AuthSignup.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/datacap-ui/src/views/auth/signin/AuthSignin.vue b/core/datacap-ui/src/views/auth/signin/AuthSignin.vue index f1d4dc8d..326f7928 100644 --- a/core/datacap-ui/src/views/auth/signin/AuthSignin.vue +++ b/core/datacap-ui/src/views/auth/signin/AuthSignin.vue @@ -143,7 +143,10 @@ export default defineComponent({ captchaImage.value = response.data.image } }) - .finally(() => captchaLoading.value = false) + .finally(() => { + captchaLoading.value = false + loading.value = false + }) } const onSubmit = handleSubmit(() => { @@ -198,6 +201,7 @@ export default defineComponent({ methods: { handlerInitialize() { + this.loading = true this.refererCaptcha() } } diff --git a/core/datacap-ui/src/views/auth/signup/AuthSignup.vue b/core/datacap-ui/src/views/auth/signup/AuthSignup.vue index 8440a074..6df20b26 100644 --- a/core/datacap-ui/src/views/auth/signup/AuthSignup.vue +++ b/core/datacap-ui/src/views/auth/signup/AuthSignup.vue @@ -157,7 +157,10 @@ export default defineComponent({ captchaImage.value = response.data.image } }) - .finally(() => captchaLoading.value = false) + .finally(() => { + captchaLoading.value = false + loading.value = false + }) } const onSubmit = handleSubmit(() => { @@ -193,6 +196,7 @@ export default defineComponent({ methods: { handlerInitialize() { + this.loading = true this.refererCaptcha() } }