forked from github/dataease
fix: 非admin账号可以通过直接访问url方式访问系统设置页面
This commit is contained in:
parent
796edb0be5
commit
e963a95ffc
@ -49,6 +49,11 @@ router.beforeEach(async (to, from, next) => {
|
||||
return pre
|
||||
}, {})
|
||||
}
|
||||
if (!pathValid(to.path) && to.path !== '/404' && !to.path.startsWith('/de-link')) {
|
||||
const firstPath = getFirstAuthMenu()
|
||||
next({ path: firstPath || '/404' })
|
||||
return
|
||||
}
|
||||
next()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user