Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -44,7 +44,12 @@ router.beforeEach((to, from, next) => {
|
||||
if (whiteList.indexOf(to.path) !== -1) {
|
||||
// 在免登录白名单,直接进入
|
||||
next()
|
||||
} else {
|
||||
}
|
||||
else if (to.path.startsWith('/l2-api')) {
|
||||
next()
|
||||
}
|
||||
|
||||
else {
|
||||
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
NProgress.done()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user