From e0bb1dc16b579dc88b6ad2fda3b0935a416eb1d3 Mon Sep 17 00:00:00 2001 From: kezhijie Date: Wed, 25 Oct 2023 19:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttps://github.com/jeecgboot/?= =?UTF-8?q?jeecgboot-vue3/issues/812?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index ce14163..319581b 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -183,15 +183,16 @@ export const useUserStore = defineStore({ //update-end-author:liusq date:2022-5-5 for: 登录成功后缓存拖拽模块的接口前缀 // update-begin-author:sunjianlei date:20230306 for: 修复登录成功后,没有正确重定向的问题 - let redirect = router.currentRoute.value?.query?.redirect as string; + // let redirect = router.currentRoute.value?.query?.redirect as string; // 判断是否有 redirect 重定向地址 //update-begin---author:wangshuai ---date:20230424 for:【QQYUN-5195】登录之后直接刷新页面导致没有进入创建组织页面------------ - if (redirect && goHome) { + // if (redirect && goHome) { //update-end---author:wangshuai ---date:20230424 for:【QQYUN-5195】登录之后直接刷新页面导致没有进入创建组织页面------------ // 当前页面打开 - window.open(redirect, '_self') - return; - } + // TODO 这段代码虽然可以登录后重定向到指定窗口,但是会存在解析userInfo的错误 + // window.open(redirect, '_self') + // return; + // } // update-end-author:sunjianlei date:20230306 for: 修复登录成功后,没有正确重定向的问题 goHome && (await router.replace((userInfo && userInfo.homePath) || PageEnum.BASE_HOME));