|
|
|
@ -34,7 +34,7 @@ function getBreadcrumb() {
|
|
|
|
|
}
|
|
|
|
|
// 判断是否为首页
|
|
|
|
|
if (!isDashboard(matched[0])) {
|
|
|
|
|
matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched)
|
|
|
|
|
matched = [{ path: "/index", meta: { title: "门户" } }].concat(matched)
|
|
|
|
|
}
|
|
|
|
|
levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
|
|
|
|
}
|
|
|
|
@ -84,15 +84,24 @@ getBreadcrumb()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
|
|
.app-breadcrumb.el-breadcrumb {
|
|
|
|
|
.app-breadcrumb.el-breadcrumb {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
|
|
.no-redirect {
|
|
|
|
|
color: #97a8be;
|
|
|
|
|
color: #fff;
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-breadcrumb__separator{
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
a{
|
|
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|