ruoyi-ui/src/permission.js
@@ -19,7 +19,7 @@ next({ path: '/' }) NProgress.done() } else if (whiteList.indexOf(to.path) !== -1) { alert(23) //alert(23) next() } else { if (store.getters.roles.length === 0) { @@ -50,6 +50,7 @@ } } else { // 没有token if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入 next()