Skip to content

Commit ebef2c9

Browse files
authored
fix: tab cannot be displayed correctly after browser refresh (#6256)
1 parent 0c3edb1 commit ebef2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stores/src/modules/tabbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
208208
const keys: string[] = [];
209209

210210
for (const key of closeKeys) {
211-
if (key !== tab.key) {
211+
if (key !== getTabKeyFromTab(tab)) {
212212
const closeTab = this.tabs.find(
213213
(item) => getTabKeyFromTab(item) === key,
214214
);

0 commit comments

Comments
 (0)