Explorar o código

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

LinaBell hai 4 meses
pai
achega
ebef2c91e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/stores/src/modules/tabbar.ts

+ 1 - 1
packages/stores/src/modules/tabbar.ts

@@ -208,7 +208,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
       const keys: string[] = [];
 
       for (const key of closeKeys) {
-        if (key !== tab.key) {
+        if (key !== getTabKeyFromTab(tab)) {
           const closeTab = this.tabs.find(
             (item) => getTabKeyFromTab(item) === key,
           );