fix web icon

This commit is contained in:
aichy126 2023-05-16 14:39:18 +08:00
parent e66ba9db77
commit 9bba51b2e2
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ func (a *UIRouter) Register(r *gin.Engine) {
if branding.Favicon != "" {
c.String(http.StatusOK, htmltext.GetPicByUrl(branding.Favicon))
return
} else if branding.SquareIcon != "" {
c.String(http.StatusOK, htmltext.GetPicByUrl(branding.SquareIcon))
return
} else {
c.Header("content-type", "image/vnd.microsoft.icon")
filePath = UIRootFilePath + urlPath