mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: server.name: use setting layer
This commit is contained in:
1 file changed
+1
-1
@@ -158,7 +158,7 @@ export class HandlerCommon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderTitle(str: string) {
|
renderTitle(str: string) {
|
||||||
const name = this.domain?.ui?.name || system.get('server.name');
|
const name = this.ctx.setting.get('server.name');
|
||||||
if (this.UiContext.extraTitleContent) return `${this.translate(str)} - ${this.UiContext.extraTitleContent} - ${name}`;
|
if (this.UiContext.extraTitleContent) return `${this.translate(str)} - ${this.UiContext.extraTitleContent} - ${name}`;
|
||||||
return `${this.translate(str)} - ${name}`;
|
return `${this.translate(str)} - ${name}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user