feat(page): customize title with server name

Add server name prefix to page title when configured, showing environment-specific branding.
This commit is contained in:
danial
2025-08-24 11:20:09 +08:00
parent cb25100f03
commit 883f2edf9c
2 changed files with 1056 additions and 825 deletions

View File

@@ -20,7 +20,11 @@ func (c *PageController) Index() {
roadList := service.QueryRoad(ctx)
c.Data["roadList"] = roadList
c.Data["showStealConfig"] = web.AppConfig.DefaultBool("showStealConfig", true)
c.Data["title"] = web.AppConfig.DefaultString("baseSettings::subtitle", "聚合支付管理系统")
serverName := env.Get("serverName", "")
if serverName != "" {
serverName = fmt.Sprintf("(%s)", serverName)
}
c.Data["title"] = serverName + "聚合支付管理系统"
c.TplName = "index.html"
}

File diff suppressed because it is too large Load Diff