fix: 移除新增的tabKey,调整对应的路由设计,方便关闭路由和修改标题
feat: 新样式的退回操作对话框
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user