From 1da746f507a519f97577041e0be14f9f74fd467a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 18 Sep 2024 16:28:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=99=BB=E5=BD=95=E9=A1=B5=E5=9C=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=BB=84=E4=BB=B6=E5=8A=A0=E8=BD=BD=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=89=8D=E6=98=BE=E7=A4=BAloading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/login/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/login/index.vue b/core/core-frontend/src/views/login/index.vue index 84b01a4ae7..5683b42454 100644 --- a/core/core-frontend/src/views/login/index.vue +++ b/core/core-frontend/src/views/login/index.vue @@ -88,7 +88,7 @@ const getCurLocation = () => { } const formRef = ref() -const duringLogin = ref(false) +const duringLogin = ref(true) const handleLogin = () => { if (!formRef.value) return formRef.value.validate(async (valid: boolean) => { @@ -226,6 +226,7 @@ const switchTab = (name: string) => { } onMounted(async () => { loadArrearance() + duringLogin.value = false if (!checkPlatform()) { const res = await loginCategoryApi() const adminLogin = router.currentRoute?.value?.name === 'admin-login'