Skip to content

Commit

Permalink
fix(breadcrumb): 修复多层级路由地址错误 (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
lz6060788 authored Sep 4, 2024
1 parent ffbc1a1 commit 1e3ee32
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 @@ -37,7 +37,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,
});
return breadcrumbArray;
Expand Down

0 comments on commit 1e3ee32

Please sign in to comment.