fix(admin): Admin web title

This commit is contained in:
lejianwen
2025-02-12 21:10:07 +08:00
parent 6aebf061a4
commit 63cf231bdc
4 changed files with 16 additions and 4 deletions

View File

@@ -61,6 +61,12 @@ func (co *Config) AppConfig(c *gin.Context) {
func (co *Config) AdminConfig(c *gin.Context) {
u := service.AllService.UserService.CurUser(c)
if u == nil || u.Id == 0 {
response.Success(c, &gin.H{
"title": global.Config.Admin.Title,
})
return
}
hello := global.Config.Admin.Hello
helloFile := global.Config.Admin.HelloFile
if helloFile != "" {