Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ba4d78e1
authored
Mar 08, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改权限按钮组件
1 parent
a00e9582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/components/auth-button/link.vue
src/components/auth-button/link.vue
View file @
ba4d78e
...
...
@@ -11,6 +11,10 @@ export default {
type
:
[
String
,
Number
],
default
:
""
,
},
name
:
{
type
:
String
,
default
:
""
,
},
type
:
{
type
:
[
String
,
Number
],
default
:
"default"
,
...
...
@@ -23,14 +27,14 @@ export default {
data
()
{
return
{};
},
mounted
()
{
},
mounted
()
{},
methods
:
{
// 判断是否有权限
hasPermission
()
{
let
id
=
this
.
uid
;
let
_name
=
this
.
name
;
let
list
=
this
.
$root
.
parentCommon
.
getAuthData
();
let
idx
=
list
.
findIndex
((
k
)
=>
k
.
id
==
id
);
let
idx
=
list
.
findIndex
((
k
)
=>
k
.
id
==
id
||
k
.
label
==
_name
);
if
(
idx
<
0
)
{
return
false
;
}
else
{
...
...
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