From 29a164a882693bfd5da19c1b75675cb846b934a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sat, 7 May 2022 12:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E9=9D=A2=E5=8C=85=E5=B1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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