mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 08:26:32 +08:00
fix(breadcrumb): 修复多层级路由指向错误(#749)
This commit is contained in:
parent
b5d624cd80
commit
257d8f90b8
|
@ -27,7 +27,7 @@ const crumbs = computed(() => {
|
||||||
|
|
||||||
breadcrumbArray.push({
|
breadcrumbArray.push({
|
||||||
path,
|
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,
|
title: route.matched[idx]?.meta?.title ?? path,
|
||||||
});
|
});
|
||||||
return breadcrumbArray;
|
return breadcrumbArray;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user