Skip to content

Commit

Permalink
fix: newTabTitle does not work as expected (#4160)
Browse files Browse the repository at this point in the history
* fix: cloneDeep tab close #4158

* Revert "fix: cloneDeep tab close #4158"

This reverts commit 8e2f4b3.

* fix:  deep clone meta.newTabTitle
  • Loading branch information
Alkaidcc authored Aug 15, 2024
1 parent 187f946 commit 1155190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/stores/src/modules/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -488,6 +488,10 @@ function cloneTab(route: TabDefinition): TabDefinition {
path: item.path,
}))
: undefined) as RouteRecordNormalized[],
meta: {
...meta,
newTabTitle: meta.newTabTitle,
},
};
}

Expand Down

0 comments on commit 1155190

Please sign in to comment.