Unverified 提交 a90355eb authored 作者: 若依's avatar 若依 提交者: Gitee

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

Merge pull request !791 from 也曾为你像超人/N/A
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论