component-Breadcrumb面包屑组件
修改getBreadcrumb() 加了绿色的部分
getBreadcrumb() {
let matched = this.$route.matched.filter(item => item.meta && item.meta.title)
const first = matched[0]
if (!this.isDashboard(first)) {
matched = [{ path: '/deployment', meta: { title: 'deployment' }}].concat(matched)
}
if (matched.length > 1) {
const insertPosition = matched.length - 1
let parent = matched[insertPosition].meta.parent
while (parent) {
const route = this.$router.resolve(parent).route
matched.splice(insertPosition, 0, route)
parent = route.meta.parent
}
}
this.levelList = matched.filter(item &#