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() } }