移动端隐藏面包屑

This commit is contained in:
不做码农 2022-05-07 12:45:01 +08:00
parent c2f51dc870
commit 29a164a882

View File

@ -19,9 +19,9 @@ function getBreadcrumb() {
let matched = route.matched.filter(item => item.meta && item.meta.title);
const first = matched[0]
//
if (!isDashboard(first)) {
matched = [{ path: '/index', meta: { title: '首页' } }].concat(matched)
}
// if (!isDashboard(first)) {
// matched = [{ path: '/index', meta: { title: '' } }].concat(matched)
// }
levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
}
@ -63,4 +63,7 @@ getBreadcrumb();
cursor: text;
}
}
.mobile .app-breadcrumb.el-breadcrumb{
display: none;
}
</style>