移动端隐藏面包屑
This commit is contained in:
parent
c2f51dc870
commit
29a164a882
@ -19,9 +19,9 @@ function getBreadcrumb() {
|
|||||||
let matched = route.matched.filter(item => item.meta && item.meta.title);
|
let matched = route.matched.filter(item => item.meta && item.meta.title);
|
||||||
const first = matched[0]
|
const first = matched[0]
|
||||||
// 判断是否为首页
|
// 判断是否为首页
|
||||||
if (!isDashboard(first)) {
|
// if (!isDashboard(first)) {
|
||||||
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)
|
||||||
}
|
}
|
||||||
@ -63,4 +63,7 @@ getBreadcrumb();
|
|||||||
cursor: text;
|
cursor: text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.mobile .app-breadcrumb.el-breadcrumb{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user