As shown below:
<!--Navigation menu-Folding function--> <aside :class="collapsed?‘menu-collapsed‘:‘menu-expanded‘"> <!--Single activation And with index As path Perform routing--> <el-menu unique-opened router v-show="!collapsed"> <!--Dynamic routing to subcomponents Hide invisible paths--> <template v-for="(item,index) in $" v-if="!"> <el-submenu :index="index+‘‘" v-if="!"> <!--useel ui oftitleconductsoltDistribute menu--> <template slot="title"><i :class=""></i>{{}}</template> <!--和来配置菜单栏和子菜单栏of名称--> <el-menu-item v-for="child in " :index="" :key="" v-if="!">{{}}</el-menu-item> </el-submenu> <el-menu-item v-if="&&>0" :index="[0].path"><i :class=""></i>{{[0].name}}</el-menu-item> </template> </el-menu>
The above example of the +element-ui dynamic configuration menu is all the content I share with you. I hope you can give you a reference and I hope you can support me more.