|
|
@ -29,6 +29,7 @@ export class AbpTitleStrategy extends TitleStrategy { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
override updateTitle(routerState: RouterStateSnapshot) { |
|
|
override updateTitle(routerState: RouterStateSnapshot) { |
|
|
|
|
|
this.routerState = routerState; |
|
|
let title = this.buildTitle(routerState); |
|
|
let title = this.buildTitle(routerState); |
|
|
|
|
|
|
|
|
if (!title) { |
|
|
if (!title) { |
|
|
@ -36,8 +37,6 @@ export class AbpTitleStrategy extends TitleStrategy { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.routerState = routerState; |
|
|
|
|
|
|
|
|
|
|
|
const localizedTitle = this.localizationService.instant({ key: title, defaultValue: title }); |
|
|
const localizedTitle = this.localizationService.instant({ key: title, defaultValue: title }); |
|
|
this.title.setTitle(`${localizedTitle} | ${this.projectName()}`); |
|
|
this.title.setTitle(`${localizedTitle} | ${this.projectName()}`); |
|
|
} |
|
|
} |
|
|
|