Skip to content

Commit 1e3ee32

Browse files
authored
fix(breadcrumb): 修复多层级路由地址错误 (#749)
1 parent ffbc1a1 commit 1e3ee32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/components/Breadcrumb.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const crumbs = computed(() => {
3737
}
3838
breadcrumbArray.push({
3939
path,
40-
to: breadcrumbArray[idx - 1] ? `/${breadcrumbArray[idx - 1].path}/${path}` : `/${path}`,
40+
to: breadcrumbArray[idx - 1] ? `${breadcrumbArray[idx - 1].to}/${path}` : `/${path}`,
4141
title,
4242
});
4343
return breadcrumbArray;

0 commit comments

Comments
 (0)