增加了一点儿小东西,面包屑点击上层菜单跳转到默认的选项卡

This commit is contained in:
寻欢·李 2018-01-29 15:39:12 +08:00
parent c8f6d61a1d
commit 8c1d636783
2 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,8 @@
<transition-group name="breadcrumb">
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path" v-if='item.meta.title'>
<span v-if='item.redirect==="noredirect"||index==levelList.length-1' class="no-redirect">{{item.meta.title}}</span>
<!--<router-link v-else :to="item.redirect||item.path">{{item.meta.title}}</router-link>--> <!-- -->
<span v-else :to="item.redirect||item.path">{{item.meta.title}}</span> <!-- 不点击的面包屑 -->
<router-link v-else :to="item.redirect||item.path">{{item.meta.title}}</router-link> <!---->
<!-- <span v-else :to="item.redirect||item.path">{{item.meta.title}}</span> --> <!-- 不点击的面包屑 -->
</el-breadcrumb-item>
</transition-group>
</el-breadcrumb>

View File

@ -45,6 +45,7 @@ export const asyncRouterMap = [
component: Layout,
name: '系统管理',
hidden: false,
redirect: '/admin/user',
// icon: 'table',
meta: {
title: '系统管理',
@ -64,6 +65,7 @@ export const asyncRouterMap = [
path: '/monitor',
component: Layout,
name: '系统监控',
redirect: '/monitor/service',
hidden: false,
// icon: 'table',
meta: {