Skip to content

Commit

Permalink
fix(): 如果小产品自定义了title无论什么情况都显示自定义title
Browse files Browse the repository at this point in the history
  • Loading branch information
WHChen-Alex committed Jul 23, 2024
1 parent c234ad5 commit e86eba1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/runtime/src/internal/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,8 @@ export class Runtime {
const baseTitle = this.getBrandSettings().base_title;

document.title =
(router?.getRecentApps().currentApp?.localeTitle as string) || pageTitle
? `${pageTitle} - ${baseTitle}`
: baseTitle;
(router?.getRecentApps().currentApp?.localeTitle as string) ||
(pageTitle ? `${pageTitle} - ${baseTitle}` : baseTitle);
}

getNavConfig() {
Expand Down

0 comments on commit e86eba1

Please sign in to comment.