fix(projects): fix set tab title (fixed #256)
This commit is contained in:
parent
0e6d289128
commit
13f6cd8ef4
@ -68,8 +68,12 @@ export const useTabStore = defineStore('tab-store', {
|
|||||||
setActiveTabTitle(title: string) {
|
setActiveTabTitle(title: string) {
|
||||||
const item = this.tabs.find(tab => tab.fullPath === this.activeTab);
|
const item = this.tabs.find(tab => tab.fullPath === this.activeTab);
|
||||||
if (item) {
|
if (item) {
|
||||||
|
if (item.meta.i18nTitle) {
|
||||||
|
item.meta.i18nTitle = title;
|
||||||
|
} else {
|
||||||
item.meta.title = title;
|
item.meta.title = title;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 初始化首页页签路由
|
* 初始化首页页签路由
|
||||||
|
Loading…
Reference in New Issue
Block a user