Commit c7b848c3 authored by 黎博's avatar 黎博

菜单栏新增字段判断是否显示

parent 9140cd93
...@@ -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>
......
...@@ -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"
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment