fix(projects): fix set tab title (fixed #256)

This commit is contained in:
Soybean 2023-06-27 22:48:04 +08:00
parent 0e6d289128
commit 13f6cd8ef4

View File

@ -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;
}
}
},
/**