update ruoyi-ui/src/permission.js.

Signed-off-by: 也曾为你像超人 <1553592282@qq.com>
This commit is contained in:
也曾为你像超人 2023-10-24 07:45:03 +00:00 committed by Gitee
parent 7b4ba0146b
commit 76205588f0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

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