From dc90e752ff45eee3ccbb988db021be245bc153a7 Mon Sep 17 00:00:00 2001 From: djhk <2424552363@qq.com> Date: Tue, 14 Oct 2025 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=A6=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 489cba1..7f915c1 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -19,8 +19,10 @@ 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) + matched = matched; // 或直接不处理 } levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) @@ -63,4 +65,4 @@ getBreadcrumb(); cursor: text; } } - \ No newline at end of file +