Skip to content

Commit

Permalink
fix(breadcrumb): 修复多层级路由指向错误(#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
timi137137 committed Sep 4, 2024
1 parent b5d624c commit 257d8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/components/Breadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const crumbs = computed(() => {
breadcrumbArray.push({
path,
to: breadcrumbArray[idx - 1] ? `/${breadcrumbArray[idx - 1].path}/${path}` : `/${path}`,
to: breadcrumbArray[idx - 1] ? `${breadcrumbArray[idx - 1].to}/${path}` : `/${path}`,
title: route.matched[idx]?.meta?.title ?? path,
});
return breadcrumbArray;
Expand Down

0 comments on commit 257d8f9

Please sign in to comment.