fix: 子菜单项设置 noDropdown = true,仍会显示孙菜单项
This commit is contained in:
parent
87a44ae7f5
commit
7ac613c944
|
@ -14,7 +14,7 @@
|
|||
</template>
|
||||
<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">
|
||||
<el-menu-item :index="item.path+'/'+child.path">
|
||||
|
|
Loading…
Reference in New Issue