fix: 移除新增的tabKey,调整对应的路由设计,方便关闭路由和修改标题

feat: 新样式的退回操作对话框
This commit is contained in:
gaoyunqi
2024-02-28 16:16:17 +08:00
parent cb075df41c
commit 8a8d18a33a
10 changed files with 362 additions and 250 deletions

View File

@ -177,8 +177,8 @@ export const useMultipleTabStore = defineStore({
cacheTab && Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList);
},
changeTitle(tabKey: string, title: string) {
const tab = (this.tabList as any).find((item) => item.tabKey === tabKey);
changeTitle(fullPath: string, title: string) {
const tab = (this.tabList as any).find((item) => item.fullPath === fullPath);
if (tab) {
tab.tabTitle = title;
}