diff --git a/apps/web-antd/src/router/guard.ts b/apps/web-antd/src/router/guard.ts index e7988eb8c..47ddc4518 100644 --- a/apps/web-antd/src/router/guard.ts +++ b/apps/web-antd/src/router/guard.ts @@ -109,10 +109,11 @@ function setupAccessGuard(router: Router) { accessStore.setAccessMenus(accessibleMenus); accessStore.setAccessRoutes(accessibleRoutes); accessStore.setIsAccessChecked(true); - const redirectPath = (from.query.redirect ?? - (to.path === DEFAULT_HOME_PATH - ? userInfo.homePath || DEFAULT_HOME_PATH - : to.fullPath)) as string; + // const redirectPath = (from.query.redirect ?? + // (to.path === DEFAULT_HOME_PATH + // ? userInfo.homePath || DEFAULT_HOME_PATH + // : to.fullPath)) as string; + const redirectPath = (from.query.redirect ?? to.fullPath) as string; return { ...router.resolve(decodeURIComponent(redirectPath)),