优化白名单页面放行逻辑

master
RuoYi 10 months ago
parent afd8de5094
commit e6f582bd1a
  1. 2
      src/permission.js

@ -21,6 +21,8 @@ router.beforeEach((to, from, next) => {
if (to.path === '/login') { if (to.path === '/login') {
next({ path: '/' }) next({ path: '/' })
NProgress.done() NProgress.done()
} else if (whiteList.indexOf(to.path) !== -1) {
next()
} else { } else {
if (useUserStore().roles.length === 0) { if (useUserStore().roles.length === 0) {
isRelogin.show = true isRelogin.show = true

Loading…
Cancel
Save