main
许宏杰 3 weeks ago
parent 2a7702489c
commit 44d7207ccf

@ -34,7 +34,7 @@ function getBreadcrumb() {
} }
// //
if (!isDashboard(matched[0])) { 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) levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
} }
@ -91,8 +91,17 @@ getBreadcrumb()
margin-left: 8px; margin-left: 8px;
.no-redirect { .no-redirect {
color: #97a8be; color: #fff;
cursor: text; cursor: text;
} }
::v-deep .el-breadcrumb__separator{
color: #fff !important;
} }
a{
color: #fff;
font-weight: bold;
}
}
</style> </style>

@ -7,7 +7,7 @@
@toggleClick="toggleSideBar" @toggleClick="toggleSideBar"
/> />
<breadcrumb <breadcrumb
v-if="!settingsStore.topNav"
id="breadcrumb-container" id="breadcrumb-container"
class="breadcrumb-container" class="breadcrumb-container"
/> />

@ -79,7 +79,7 @@ export const constantRoutes = [
path: "/index", path: "/index",
component: () => import("@/views/index"), component: () => import("@/views/index"),
name: "Index", name: "Index",
meta: { title: "首页", icon: "dashboard", affix: true }, meta: { title: "门户", icon: "dashboard", affix: true },
}, },
{ {

Loading…
Cancel
Save