diff --git a/ruoyi-ui/src/permission.js b/ruoyi-ui/src/permission.js index e1a14da7..c5689790 100644 --- a/ruoyi-ui/src/permission.js +++ b/ruoyi-ui/src/permission.js @@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => { if (to.path === '/login') { next({ path: '/' }) NProgress.done() + } else if (whiteList.indexOf(to.path) !== -1) { + next() } else { if (store.getters.roles.length === 0) { isRelogin.show = true