提交者
Gitee
update ruoyi-ui/src/permission.js.
Signed-off-by: 也曾为你像超人 <1553592282@qq.com>
正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论