mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-09-19 02:04:22 +08:00
fix(breadcrumb): 修复多层级路由地址错误 (#749)
This commit is contained in:
parent
ffbc1a1276
commit
1e3ee320f1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user