@@ -47,10 +47,10 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
next()
} else {
- next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
- NProgress.done()
- // next(`/sso-login`) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
+ // next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
// NProgress.done()
+ next(`/sso-login`) // 否则全部重定向到单点登录的登录页,而不是再进入原来的登录页
+ NProgress.done()
}
})