Unverified Commit a90355eb authored by 若依's avatar 若依 Committed by Gitee

!791 优化白名单页面放行逻辑

Merge pull request !791 from 也曾为你像超人/N/A
parents 4ca30f08 76205588
...@@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => { ...@@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => {
if (to.path === '/login') { if (to.path === '/login') {
next({ path: '/' }) next({ path: '/' })
NProgress.done() NProgress.done()
} else if (whiteList.indexOf(to.path) !== -1) {
next()
} else { } else {
if (store.getters.roles.length === 0) { if (store.getters.roles.length === 0) {
isRelogin.show = true isRelogin.show = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment