Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_sys_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_sys_web
Commits
092340ca
Commit
092340ca
authored
Jul 19, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
78c7f920
9b7a7b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
permission.js
src/permission.js
+6
-1
No files found.
src/permission.js
View file @
092340ca
...
@@ -59,7 +59,12 @@ router.beforeEach((to, from, next) => {
...
@@ -59,7 +59,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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment