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