fix(projects): fix set tab title (fixed #256)
This commit is contained in:
parent
0e6d289128
commit
13f6cd8ef4
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user