[Core] [User] Fix user login registration loading status

This commit is contained in:
qianmoQ 2024-05-23 11:48:52 +08:00
parent b6b6076a1d
commit d42854eeeb
2 changed files with 10 additions and 2 deletions

View File

@ -143,7 +143,10 @@ export default defineComponent({
captchaImage.value = response.data.image captchaImage.value = response.data.image
} }
}) })
.finally(() => captchaLoading.value = false) .finally(() => {
captchaLoading.value = false
loading.value = false
})
} }
const onSubmit = handleSubmit(() => { const onSubmit = handleSubmit(() => {
@ -198,6 +201,7 @@ export default defineComponent({
methods: { methods: {
handlerInitialize() handlerInitialize()
{ {
this.loading = true
this.refererCaptcha() this.refererCaptcha()
} }
} }

View File

@ -157,7 +157,10 @@ export default defineComponent({
captchaImage.value = response.data.image captchaImage.value = response.data.image
} }
}) })
.finally(() => captchaLoading.value = false) .finally(() => {
captchaLoading.value = false
loading.value = false
})
} }
const onSubmit = handleSubmit(() => { const onSubmit = handleSubmit(() => {
@ -193,6 +196,7 @@ export default defineComponent({
methods: { methods: {
handlerInitialize() handlerInitialize()
{ {
this.loading = true
this.refererCaptcha() this.refererCaptcha()
} }
} }