diff --git a/packages/stores/src/modules/tabbar.ts b/packages/stores/src/modules/tabbar.ts index 17215a5e..5b892b66 100644 --- a/packages/stores/src/modules/tabbar.ts +++ b/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, );