mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 13:58:32 +08:00
fix: 修复获取路由参数报错的问题 (#203)
This commit is contained in:
parent
b8997d206c
commit
e78d4b6ee1
|
@ -20,7 +20,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].path}/${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