!791 优化白名单页面放行逻辑

Merge pull request !791 from 也曾为你像超人/N/A
This commit is contained in:
若依 2023-11-28 03:54:05 +00:00 committed by Gitee
commit a90355eb5e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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