Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 57e5ea07
authored
May 16, 2022
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加权限判断方法
1 parent
9fb0c489
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
package-lock.json
src/utils/common/common.js
package-lock.json
View file @
57e5ea0
This diff could not be displayed because it is too large.
src/utils/common/common.js
View file @
57e5ea0
...
...
@@ -103,6 +103,20 @@ export const Common = {
// 公共页面跳转方法
navigateTo
:
function
(
options
){
},
// 判断是否有权限
hasPermission
:
function
(
pid
){
let
list
=
Common
.
getAuthData
()
if
(
!
list
||
list
.
length
<=
0
)
{
return
false
;
}
let
idx
=
list
.
findIndex
((
k
)
=>
k
.
origin
.
permissionTag
==
pid
);
if
(
idx
<
0
)
{
return
false
;
}
else
{
return
true
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment