diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 489cba1..4bdaa47 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -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; +} \ No newline at end of file