mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
增加了一点儿小东西,面包屑点击上层菜单跳转到默认的选项卡
This commit is contained in:
parent
c8f6d61a1d
commit
8c1d636783
@ -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>
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user