ソースを参照

优化白名单页面放行逻辑

RuoYi 2 年 前
コミット
2eeb642f07
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      ruoyi-ui/src/permission.js

+ 2 - 0
ruoyi-ui/src/permission.js

@@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => {
18 18
     if (to.path === '/login') {
19 19
       next({ path: '/' })
20 20
       NProgress.done()
21
+    } else if (whiteList.indexOf(to.path) !== -1) {
22
+      next()
21 23
     } else {
22 24
       if (store.getters.roles.length === 0) {
23 25
         isRelogin.show = true