【严重问题】导致登录后会加载登录后逻辑,改后登录会变快

pull/523/head
zhangdaiscott 2023-04-25 10:24:39 +08:00
parent df478e7779
commit df8d599e58
1 changed files with 6 additions and 1 deletions

View File

@ -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;