File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<el-breadcrumb class =" app-breadcrumb" separator =" /" >
3
3
<transition-group name =" breadcrumb" >
4
- <el-breadcrumb-item v-for =" (item,index) in levelList" v-if =" item.meta.title" :key =" item.path" >
5
- <span v-if =" item.redirect==='noredirect'||index==levelList.length-1" class =" no-redirect" >{{ generateTitle(item.meta.title) }}</span >
4
+ <el-breadcrumb-item v-for =" (item,index) in levelList" v-if =" item.meta.title&&item.meta.breadcrumb!==false" :key =" item.path" >
5
+ <span v-if =" item.redirect==='noredirect'||index==levelList.length-1" class =" no-redirect" >{{
6
+ generateTitle(item.meta.title) }}</span >
6
7
<a v-else @click.prevent =" handleLink(item)" >{{ generateTitle(item.meta.title) }}</a >
7
8
</el-breadcrumb-item >
8
9
</transition-group >
Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ import nestedRouter from './modules/nested'
24
24
* redirect: noredirect if `redirect:noredirect` will no redirect in the breadcrumb
25
25
* name:'router-name' the name is used by <keep-alive> (must set!!!)
26
26
* meta : {
27
- roles: ['admin','editor'] will control the page roles (you can set multiple roles)
27
+ roles: ['admin','editor'] will control the page roles (you can set multiple roles)
28
28
title: 'title' the name show in submenu and breadcrumb (recommend set)
29
- icon: 'svg-name' the icon show in the sidebar,
30
- noCache: true if true ,the page will no be cached(default is false)
29
+ icon: 'svg-name' the icon show in the sidebar
30
+ noCache: true if true, the page will no be cached(default is false)
31
+ breadcrumb: false if false, the item will hidden in breadcrumb(default is true)
31
32
}
32
33
**/
33
34
export const constantRouterMap = [
You can’t perform that action at this time.
0 commit comments