From 17e62da2a097844b0f6f7a58926e7d0a40598d2c Mon Sep 17 00:00:00 2001
From: hailin <1356886193@qq.com>
Date: 星期五, 21 七月 2023 10:30:23 +0800
Subject: [PATCH] 标准库的第三次提交
---
src/components/Breadcrumb/index.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index f6aaf66..c7f6f66 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -29,12 +29,12 @@
methods: {
getBreadcrumb() {
// only show routes with meta.title
- let matched = this.$route.matched.filter(item => item.meta && item.meta.title)
- const first = matched[0]
-
- if (!this.isDashboard(first)) {
- matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
- }
+ const matched = this.$route.matched.filter(item => item.meta && item.meta.title)
+ // const first = matched[0]
+ // console.log(this.isDashboard(first))// 鍒ゆ柇鏄惁鏈変富椤�
+ // if (!this.isDashboard(first)) {
+ // matched = [{ path: '/home', meta: { title: '涓婚〉', icon: 'el-icon-s-home' }}].concat(matched)
+ // }
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
},
@@ -43,7 +43,7 @@
if (!name) {
return false
}
- return name.trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase()
+ return name.trim().toLocaleLowerCase() === 'home'.toLocaleLowerCase()
},
pathCompile(path) {
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
--
Gitblit v1.9.3