RuoYi
2023-11-29 6ec98f2e6482c2d543c854fefe801268e106e8ca
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