mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-24 02:00:22 +08:00
parent
adff788de5
commit
336be680d3
@ -136,10 +136,10 @@ export const useMultipleTabStore = defineStore({
|
||||
curTab.query = query || curTab.query;
|
||||
curTab.fullPath = fullPath || curTab.fullPath;
|
||||
this.tabList.splice(updateIndex, 1, curTab);
|
||||
return;
|
||||
} else {
|
||||
// Add tab
|
||||
this.tabList.push(route);
|
||||
}
|
||||
// Add tab
|
||||
this.tabList.push(route);
|
||||
this.updateCacheTab();
|
||||
cacheTab && Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user