Commit 8cfd2f2b authored by zhangyichen's avatar zhangyichen

提交

parent 4f286bce
......@@ -74,8 +74,13 @@ router.beforeEach((to, from, next) => {
// window.location.href = `${process.env.VUE_APP_LOGIN}?redirect=${to.fullPath}&reLocation=${process.env.VUE_APP_NQ}`
})
})
} else {
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