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