Browse Source

fix: tab cannot be displayed correctly after browser refresh (#6256)

pull/6266/head
LinaBell 12 months ago
committed by GitHub
parent
commit
ebef2c91e2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/stores/src/modules/tabbar.ts

2
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,
); );

Loading…
Cancel
Save