diff --git a/src/store/modules/tab/index.ts b/src/store/modules/tab/index.ts index c39d9fd3..2114c2cc 100644 --- a/src/store/modules/tab/index.ts +++ b/src/store/modules/tab/index.ts @@ -68,7 +68,11 @@ export const useTabStore = defineStore('tab-store', { setActiveTabTitle(title: string) { const item = this.tabs.find(tab => tab.fullPath === this.activeTab); if (item) { - item.meta.title = title; + if (item.meta.i18nTitle) { + item.meta.i18nTitle = title; + } else { + item.meta.title = title; + } } }, /**