Commit 8cfd2f2b authored by zhangyichen's avatar zhangyichen

提交

parent 4f286bce
...@@ -75,7 +75,12 @@ router.beforeEach((to, from, next) => { ...@@ -75,7 +75,12 @@ router.beforeEach((to, from, next) => {
}) })
}) })
} else { } else {
next() if (store.state.tagsView.visitedViews.length === 10) {
Message.error('您操作的页面较多,请先关闭部分页面')
NProgress.done()
} else {
next()
}
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓ // 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
// if (hasPermission(store.getters.roles, to.meta.roles)) { // if (hasPermission(store.getters.roles, to.meta.roles)) {
// next() // next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment