RuoYi
2024-09-11 1c2da6dfb1e23fa38c58ada5d7e98f91ae2d738e
src/permission.js
@@ -21,6 +21,8 @@
    if (to.path === '/login') {
      next({ path: '/' })
      NProgress.done()
    } else if (whiteList.indexOf(to.path) !== -1) {
      next()
    } else {
      if (useUserStore().roles.length === 0) {
        isRelogin.show = true