From 5c85ed13fdd88baf45a312f4557db912b4fee19e Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Mon, 28 Jul 2025 13:43:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0=E8=BD=BD=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8E=E7=99=BB=E5=BD=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/src/components/LoginDialog/index.vue | 6 +++--- Yi.Ai.Vue3/src/layouts/index.vue | 5 +++++ Yi.Ai.Vue3/src/main.ts | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Yi.Ai.Vue3/src/components/LoginDialog/index.vue b/Yi.Ai.Vue3/src/components/LoginDialog/index.vue index 1a130b28..31e67faf 100644 --- a/Yi.Ai.Vue3/src/components/LoginDialog/index.vue +++ b/Yi.Ai.Vue3/src/components/LoginDialog/index.vue @@ -85,12 +85,12 @@ function handleThirdPartyLogin(type: any) { const resUserInfo = await getUserInfo(); userStore.setUserInfo(resUserInfo.data); // 关闭弹窗 - - // 后续逻辑 - ElMessage.success('登录成功'); if (popup && !popup.closed) { popup.close(); } + + // 后续逻辑 + ElMessage.success('登录成功'); userStore.closeLoginDialog(); await sessionStore.requestSessionList(1, true); await router.replace('/'); diff --git a/Yi.Ai.Vue3/src/layouts/index.vue b/Yi.Ai.Vue3/src/layouts/index.vue index f3894097..64680be5 100644 --- a/Yi.Ai.Vue3/src/layouts/index.vue +++ b/Yi.Ai.Vue3/src/layouts/index.vue @@ -16,6 +16,11 @@ const designStore = useDesignStore(); // const { isMobile } = useScreenStore(); /** 获取布局格式 */ const layout = computed((): LayoutType => designStore.layout); +onMounted(() => { + console.log('111--'); + // 通知 index.html 的 loading 动画进度拉满并淡出 + (window as any)?.finishLoading(); +});