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

pull/115/head
LinaBell 2025-05-22 09:04:40 +08:00 committed by GitHub
parent 0c3edb10b0
commit ebef2c91e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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