Skip to content

Commit

Permalink
fix(projects): fix set tab title (fixed soybeanjs#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jun 27, 2023
1 parent 0e6d289 commit 13f6cd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/store/modules/tab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
},
/**
Expand Down

0 comments on commit 13f6cd8

Please sign in to comment.