template
Pan 2017-07-03 14:23:04 +08:00
parent 44cc9560bb
commit 1f1a32ad6f
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@
<div> <div>
<template v-for="item in routes"> <template v-for="item in routes">
<router-link v-if="!item.hidden&&item.noDropdown&&item.children.length>0" :to="item.path+'/'+item.children[0].path"> <router-link v-if="!item.hidden&&item.noDropdown&&item.children.length>0" :to="item.path+'/'+item.children[0].path">
<el-menu-item :index="item.path+'/'+item.children[0].path"> <el-menu-item v-if='item.children[0]' :index="item.path+'/'+item.children[0].path">
<!--<icon-svg v-if='item.icon' :icon-class="item.icon"></icon-svg>--> <icon-svg v-if='item.icon' :icon-class="item.icon"></icon-svg>
{{item.children[0]}} {{item.children[0].name}}
</el-menu-item> </el-menu-item>
</router-link> </router-link>
<el-submenu :index="item.name" v-if="!item.noDropdown&&!item.hidden"> <el-submenu :index="item.name" v-if="!item.noDropdown&&!item.hidden">