RuoYi
2024-11-25 6061c3548fb5c0e1bbae21c7648d4a4400e994a6
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