Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform-ui
Commits
c7b848c3
Commit
c7b848c3
authored
Apr 26, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单栏新增字段判断是否显示
parent
9140cd93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Aside.vue
src/views/layout/leftAside/Aside.vue
+1
-1
menu.json
src/views/layout/leftAside/menu.json
+7
-0
No files found.
src/views/layout/leftAside/Aside.vue
View file @
c7b848c3
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<!-- 二级菜单 -->
<!-- 二级菜单 -->
<el-menu-item
:index=
"subItem.path"
v-for=
"subItem in item.child"
:key=
"subItem.path"
@
click=
"saveNavState(subItem.path)"
>
<el-menu-item
:index=
"subItem.path"
v-for=
"subItem in item.child"
:key=
"subItem.path"
@
click=
"saveNavState(subItem.path)"
>
<
template
slot=
"title"
>
<
template
v-if=
"subItem.show !== 'false'"
slot=
"title"
>
<i
:class=
"subItem.icon"
></i>
<i
:class=
"subItem.icon"
></i>
<span>
{{
subItem
.
title
}}
</span>
<span>
{{
subItem
.
title
}}
</span>
</
template
>
</
template
>
...
...
src/views/layout/leftAside/menu.json
View file @
c7b848c3
...
@@ -110,6 +110,13 @@
...
@@ -110,6 +110,13 @@
"title"
:
"接口列表"
,
"title"
:
"接口列表"
,
"icon"
:
"el-icon-bank-card"
,
"icon"
:
"el-icon-bank-card"
,
"path"
:
"/auto/InterfaceDetail"
"path"
:
"/auto/InterfaceDetail"
},
{
"id"
:
4
,
"title"
:
"新增接口"
,
"show"
:
"false"
,
"icon"
:
"el-icon-bank-card"
,
"path"
:
"/auto/AddInterface"
}
}
]
]
}
}
...
...
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