fix: merge main userinfo error
parent
5a658d6419
commit
b51045cc1b
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue