Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
db3cbcdd
Commit
db3cbcdd
authored
Oct 21, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4fb34dcc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.vue
src/views/withMenu/index.vue
+1
-1
tabList.ts
src/views/withMenu/tabList.ts
+3
-3
No files found.
src/views/withMenu/index.vue
View file @
db3cbcdd
...
@@ -26,7 +26,7 @@ export default defineComponent({
...
@@ -26,7 +26,7 @@ export default defineComponent({
},
},
tabList
()
{
tabList
()
{
const
user
=
getUserMsg
()
const
user
=
getUserMsg
()
return
(
user
&&
tabList
.
filter
(
i
=>
i
.
roles
.
includes
(
user
.
role
)))
||
tabList
.
filter
(
i
=>
i
.
showNotLogin
);
return
(
user
&&
tabList
.
filter
(
i
=>
i
.
roles
.
includes
(
user
.
role
2
)))
||
tabList
.
filter
(
i
=>
i
.
showNotLogin
);
},
},
},
},
});
});
...
...
src/views/withMenu/tabList.ts
View file @
db3cbcdd
...
@@ -6,7 +6,7 @@ export default [
...
@@ -6,7 +6,7 @@ export default [
routeName
:
'Home'
,
routeName
:
'Home'
,
icon
:
'icon-shouye-tab-xuanze1'
,
icon
:
'icon-shouye-tab-xuanze1'
,
icon1
:
'icon-shouye-tab'
,
icon1
:
'icon-shouye-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
showNotLogin
:
true
,
showNotLogin
:
true
,
},
},
{
{
...
@@ -23,7 +23,7 @@ export default [
...
@@ -23,7 +23,7 @@ export default [
routeName
:
'Loan'
,
routeName
:
'Loan'
,
icon
:
'icon-daikuan-tab-xuanze'
,
icon
:
'icon-daikuan-tab-xuanze'
,
icon1
:
'icon-daikuan-tab'
,
icon1
:
'icon-daikuan-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
showNotLogin
:
true
,
showNotLogin
:
true
,
},
},
{
{
...
@@ -31,7 +31,7 @@ export default [
...
@@ -31,7 +31,7 @@ export default [
routeName
:
'Mine'
,
routeName
:
'Mine'
,
icon
:
'icon-wode-tabdianji'
,
icon
:
'icon-wode-tabdianji'
,
icon1
:
'icon-wode-tab'
,
icon1
:
'icon-wode-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
showNotLogin
:
true
,
showNotLogin
:
true
,
},
},
]
]
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