Commit 9b7a7b78 authored by zhangyichen's avatar zhangyichen

最多打开十个页面提交

parent 57187658
......@@ -59,7 +59,12 @@ router.beforeEach((to, from, next) => {
})
})
} else {
next()
if (store.state.tagsView.visitedViews.length === 10) {
Message.error('您操作的页面较多,请先关闭部分页面')
NProgress.done()
} else {
next()
}
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
// if (hasPermission(store.getters.roles, to.meta.roles)) {
// 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