fix: 子菜单项设置 noDropdown = true,仍会显示孙菜单项

This commit is contained in:
Liu ding 2017-10-24 17:55:10 +08:00 committed by GitHub
parent 87a44ae7f5
commit 7ac613c944
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
</template> </template>
<template v-for="child in item.children" v-if='!child.hidden'> <template v-for="child in item.children" v-if='!child.hidden'>
<sidebar-item class='nest-menu' v-if='child.children&&child.children.length>0' :routes='[child]'> </sidebar-item> <sidebar-item class='nest-menu' v-if='child.children&&child.children.length>0&&!child.noDropdown' :routes='[child]'> </sidebar-item>
<router-link v-else :to="item.path+'/'+child.path"> <router-link v-else :to="item.path+'/'+child.path">
<el-menu-item :index="item.path+'/'+child.path"> <el-menu-item :index="item.path+'/'+child.path">