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

@ -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>

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

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

Loading…
Cancel
Save