优化系统设置
This commit is contained in:
@@ -17,11 +17,11 @@ const levelList = ref([])
|
||||
function getBreadcrumb() {
|
||||
// only show routes with meta.title
|
||||
let matched = route.matched.filter((item) => item.meta && item.meta.title)
|
||||
// const first = matched[0]
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user