路由跳转

This commit is contained in:
xing 2020-06-17 11:06:26 +08:00
parent 00f43f2580
commit cc1ff07808

View File

@ -13,7 +13,7 @@
<el-menu unique-opened :collapse="isCollapsed" :collapse-transition="false" <el-menu unique-opened :collapse="isCollapsed" :collapse-transition="false"
background-color="#313743" background-color="#313743"
text-color="#fff" text-color="#fff" router
active-text-color="#3497FF"> active-text-color="#3497FF">
<el-submenu :index="item.id + ''" v-for="item in menuList" :key="item.id"> <el-submenu :index="item.id + ''" v-for="item in menuList" :key="item.id">
<!-- 一级菜单模板 --> <!-- 一级菜单模板 -->
@ -24,7 +24,7 @@
<span>{{item.authName}}</span> <span>{{item.authName}}</span>
</template> </template>
<!--二级菜单--> <!--二级菜单-->
<el-menu-item :index="subitem.id+''" v-for="subitem in item.children " :key="subitem.id + ''"> <el-menu-item :index="'/'+subitem.path" v-for="subitem in item.children " :key="subitem.id + ''">
<!--图标--> <!--图标-->
<i class="el-icon-menu"></i> <i class="el-icon-menu"></i>
<!--文本--> <!--文本-->