Browse Source
fix: tab cannot be displayed correctly after browser refresh (#6256)
pull/6266/head
LinaBell
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/stores/src/modules/tabbar.ts
|
|
@ -208,7 +208,7 @@ export const useTabbarStore = defineStore('core-tabbar', { |
|
|
const keys: string[] = []; |
|
|
const keys: string[] = []; |
|
|
|
|
|
|
|
|
for (const key of closeKeys) { |
|
|
for (const key of closeKeys) { |
|
|
if (key !== tab.key) { |
|
|
if (key !== getTabKeyFromTab(tab)) { |
|
|
const closeTab = this.tabs.find( |
|
|
const closeTab = this.tabs.find( |
|
|
(item) => getTabKeyFromTab(item) === key, |
|
|
(item) => getTabKeyFromTab(item) === key, |
|
|
); |
|
|
); |
|
|
|