作者 也曾为你像超人
提交者 Gitee

update ruoyi-ui/src/permission.js.

Signed-off-by: 也曾为你像超人 <1553592282@qq.com>
@@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => { @@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => {
18 if (to.path === '/login') { 18 if (to.path === '/login') {
19 next({ path: '/' }) 19 next({ path: '/' })
20 NProgress.done() 20 NProgress.done()
  21 + } else if (whiteList.indexOf(to.path) !== -1) {
  22 + next()
21 } else { 23 } else {
22 if (store.getters.roles.length === 0) { 24 if (store.getters.roles.length === 0) {
23 isRelogin.show = true 25 isRelogin.show = true