avoid duplicate title in split tab's title

上级 b3a07e5f
......@@ -635,7 +635,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}
private updateTitle (): void {
this.setTitle(this.getAllTabs().map(x => x.title).join(' | '))
this.setTitle([...new Set(this.getAllTabs().map(x => x.title))].join(' | '))
}
private attachTabView (tab: BaseTabComponent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册