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