HUCHAOQI
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/store/modules/multipleTab.ts
|
|
|
@ -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); |
|
|
|
}, |
|
|
|
|