fix(breadcrumb): 修复多层级路由地址错误 (#749)

This commit is contained in:
lz6060788 2024-09-04 16:54:25 +08:00 committed by GitHub
parent ffbc1a1276
commit 1e3ee320f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;