fix: merge main userinfo error
parent
5a658d6419
commit
b51045cc1b
|
|
@ -109,10 +109,11 @@ function setupAccessGuard(router: Router) {
|
||||||
accessStore.setAccessMenus(accessibleMenus);
|
accessStore.setAccessMenus(accessibleMenus);
|
||||||
accessStore.setAccessRoutes(accessibleRoutes);
|
accessStore.setAccessRoutes(accessibleRoutes);
|
||||||
accessStore.setIsAccessChecked(true);
|
accessStore.setIsAccessChecked(true);
|
||||||
const redirectPath = (from.query.redirect ??
|
// const redirectPath = (from.query.redirect ??
|
||||||
(to.path === DEFAULT_HOME_PATH
|
// (to.path === DEFAULT_HOME_PATH
|
||||||
? userInfo.homePath || DEFAULT_HOME_PATH
|
// ? userInfo.homePath || DEFAULT_HOME_PATH
|
||||||
: to.fullPath)) as string;
|
// : to.fullPath)) as string;
|
||||||
|
const redirectPath = (from.query.redirect ?? to.fullPath) as string;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...router.resolve(decodeURIComponent(redirectPath)),
|
...router.resolve(decodeURIComponent(redirectPath)),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue