|
@@ -8,7 +8,7 @@ const whiteList = ['/login', '/image_change', '/register']; // 重定向白名
|
|
|
|
|
|
// 用户类型对应的跳转路径
|
|
// 用户类型对应的跳转路径
|
|
export const userTypeToJump = {
|
|
export const userTypeToJump = {
|
|
- USER: '/',
|
|
|
|
|
|
+ USER: '/home',
|
|
ORG_MANAGER: '/project_manage/org/project',
|
|
ORG_MANAGER: '/project_manage/org/project',
|
|
ADMIN: '/org_manage',
|
|
ADMIN: '/org_manage',
|
|
};
|
|
};
|
|
@@ -32,6 +32,7 @@ export function setupRouterGuard(router) {
|
|
NProgress.done();
|
|
NProgress.done();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ next();
|
|
return;
|
|
return;
|
|
} else if (whiteList.includes(to.path)) {
|
|
} else if (whiteList.includes(to.path)) {
|
|
// 在登录白名单中,直接进入
|
|
// 在登录白名单中,直接进入
|