This commit is contained in:
dap
2024-08-16 07:41:43 +08:00
33 changed files with 935 additions and 481 deletions

View File

@@ -478,7 +478,7 @@ function cloneTab(route: TabDefinition): TabDefinition {
if (!route) {
return route;
}
const { matched, ...opt } = route;
const { matched, meta, ...opt } = route;
return {
...opt,
matched: (matched
@@ -488,6 +488,10 @@ function cloneTab(route: TabDefinition): TabDefinition {
path: item.path,
}))
: undefined) as RouteRecordNormalized[],
meta: {
...meta,
newTabTitle: meta.newTabTitle,
},
};
}