更新路由配置,修改店铺信息展示,登录拦截
This commit is contained in:
@@ -47,14 +47,14 @@ export function setupPermission() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
next();
|
||||
// // 未登录,判断是否在白名单中
|
||||
// if (whiteList.includes(to.path)) {
|
||||
// } else {
|
||||
// // 不在白名单,重定向到登录页
|
||||
// redirectToLogin(to, next);
|
||||
// NProgress.done();
|
||||
// }
|
||||
// 未登录,判断是否在白名单中
|
||||
if (whiteList.includes(to.path)) {
|
||||
next();
|
||||
} else {
|
||||
// 不在白名单,重定向到登录页
|
||||
redirectToLogin(to, next);
|
||||
NProgress.done();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user