mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:13:40 +08:00
@@ -136,10 +136,10 @@ export const useMultipleTabStore = defineStore({
|
|||||||
curTab.query = query || curTab.query;
|
curTab.query = query || curTab.query;
|
||||||
curTab.fullPath = fullPath || curTab.fullPath;
|
curTab.fullPath = fullPath || curTab.fullPath;
|
||||||
this.tabList.splice(updateIndex, 1, curTab);
|
this.tabList.splice(updateIndex, 1, curTab);
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
// Add tab
|
// Add tab
|
||||||
this.tabList.push(route);
|
this.tabList.push(route);
|
||||||
|
}
|
||||||
this.updateCacheTab();
|
this.updateCacheTab();
|
||||||
cacheTab && Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList);
|
cacheTab && Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user