File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 33 <template v-for =" item in routes " v-if =" ! item .hidden && item .children " >
44
55 <router-link v-if =" item.children.length===1 && !item.children[0].children" :to =" item.path+'/'+item.children[0].path" :key =" item.children[0].name" >
6- <el-menu-item :index =" item.path+'/'+item.children[0].path" class =' submenu-title-noDropdown' >
6+ <el-menu-item :index =" item.path+'/'+item.children[0].path" : class =" { 'submenu-title-noDropdown':!isNest} " >
77 <svg-icon v-if =" item.children[0].meta&&item.children[0].meta.icon" :icon-class =" item.children[0].meta.icon" ></svg-icon >
88 <span v-if =" item.children[0].meta&&item.children[0].meta.title" >{{generateTitle(item.children[0].meta.title)}}</span >
99 </el-menu-item >
1616 </template >
1717
1818 <template v-for =" child in item .children " v-if =" ! child .hidden " >
19- <sidebar-item class =" nest-menu" v-if =" child.children&&child.children.length>0" :routes =" [child]" :key =" child.path" ></sidebar-item >
19+ <sidebar-item :is-nest = " true " class =" nest-menu" v-if =" child.children&&child.children.length>0" :routes =" [child]" :key =" child.path" ></sidebar-item >
2020
2121 <router-link v-else :to =" item.path+'/'+child.path" :key =" child.name" >
2222 <el-menu-item :index =" item.path+'/'+child.path" >
@@ -39,6 +39,10 @@ export default {
3939 props: {
4040 routes: {
4141 type: Array
42+ },
43+ isNest: {
44+ type: Boolean ,
45+ default: false
4246 }
4347 },
4448 methods: {
You can’t perform that action at this time.
0 commit comments