Commit f9c03751 authored by tyn's avatar tyn

fix

parent 62e1277d
......@@ -12,11 +12,11 @@
<template v-for="(child, index) in children.children">
<template v-if="child.meta.inSideBar && child.children">
<template v-if="child.meta.inSideBar && child.children && child.meta.menuType === 'M'">
<child-item :children="child" :key="child.path"></child-item>
</template>
<el-menu-item v-else-if="child.meta.inSideBar && !child.children" :key="child.path" :index="child.path">
<el-menu-item v-else-if="child.meta.inSideBar && !child.children && child.meta.menuType === 'C'" :key="child.path" :index="child.path">
<template slot="title">
<div class="menu-item-title">
<img :src="require(`@/${child.meta.icon}`)" alt="" v-if="child.meta.icon">
......
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