diff --git a/src/layout/components/Search/index.vue b/src/layout/components/Search/index.vue
index cabbabb6..bdc95e96 100644
--- a/src/layout/components/Search/index.vue
+++ b/src/layout/components/Search/index.vue
@@ -37,7 +37,7 @@
{{ bc }}
-
+
{{ item.path }}
@@ -347,8 +347,11 @@ function scrollTo(offsetTop) {
@include text-overflow(1, true);
}
.breadcrumb {
- span:last-child i {
- display: none;
+ span {
+ margin-right: 5px;
+ &:last-child i {
+ display: none;
+ }
}
}
}
diff --git a/src/layout/components/Topbar/index.vue b/src/layout/components/Topbar/index.vue
index 76cb9472..febbb8ee 100644
--- a/src/layout/components/Topbar/index.vue
+++ b/src/layout/components/Topbar/index.vue
@@ -43,13 +43,7 @@ const breadcrumbList = computed(() => {
})
}
if (route.meta.breadcrumbNeste) {
- route.meta.breadcrumbNeste.map((item, index) => {
- let tmpItem = deepClone(item)
- if (index != 0) {
- tmpItem.path = `${route.meta.breadcrumbNeste[0].path}/${item.path}`
- }
- breadcrumbList.push(tmpItem)
- })
+ breadcrumbList.push(...deepClone(route.meta.breadcrumbNeste))
}
return breadcrumbList
})
diff --git a/src/store/modules/menu.js b/src/store/modules/menu.js
index 4b6a143b..669b4951 100644
--- a/src/store/modules/menu.js
+++ b/src/store/modules/menu.js
@@ -191,7 +191,7 @@ const actions = {
item.children = flatAsyncRoutes(item.children, [{
path: item.path,
title: item.meta.title
- }])
+ }], item.path)
}
})
commit('setDefaultOpenedPaths', routes)
@@ -224,7 +224,7 @@ const actions = {
item.children = flatAsyncRoutes(item.children, [{
path: item.path,
title: item.meta.title
- }])
+ }], item.path)
}
})
commit('setDefaultOpenedPaths', routes)