From df8d599e58ea8369fdb8c19ffa8fc9a9820f6b5f Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Tue, 25 Apr 2023 10:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=A5=E9=87=8D=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=91=E5=AF=BC=E8=87=B4=E7=99=BB=E5=BD=95=E5=90=8E=E4=BC=9A?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=99=BB=E5=BD=95=E5=90=8E=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E5=90=8E=E7=99=BB=E5=BD=95=E4=BC=9A=E5=8F=98?= =?UTF-8?q?=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/guard/permissionGuard.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/router/guard/permissionGuard.ts b/src/router/guard/permissionGuard.ts index b4c1767..f765237 100644 --- a/src/router/guard/permissionGuard.ts +++ b/src/router/guard/permissionGuard.ts @@ -46,8 +46,13 @@ export function createPermissionGuard(router: Router) { if (whitePathList.includes(to.path as PageEnum)) { if (to.path === LOGIN_PATH && token) { const isSessionTimeout = userStore.getSessionTimeout; + + //update-begin---author:scott ---date:2023-04-24 for:【QQYUN-4713】登录代码调整逻辑有问题,改造待观察-- + //TODO vben默认写法,暂时不知目的,有问题暂时先注释掉 + //await userStore.afterLoginAction(); + //update-end---author:scott ---date::2023-04-24 for:【QQYUN-4713】登录代码调整逻辑有问题,改造待观察-- + try { - await userStore.afterLoginAction(); if (!isSessionTimeout) { next((to.query?.redirect as string) || '/'); return;