Browse Source

style: 修改 logo 路径 (#1279)

pull/1281/head
zhengkunwang223 1 year ago committed by GitHub
parent
commit
c7a3ef7d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/init/router/router.go
  2. 2
      frontend/index.html

2
backend/init/router/router.go

@ -18,7 +18,7 @@ import (
)
func setWebStatic(rootRouter *gin.RouterGroup) {
rootRouter.StaticFS("/fav", http.FS(web.Favicon))
rootRouter.StaticFS("/public", http.FS(web.Favicon))
rootRouter.GET("/assets/*filepath", func(c *gin.Context) {
staticServer := http.FileServer(http.FS(web.Assets))
staticServer.ServeHTTP(c.Writer, c.Request)

2
frontend/index.html

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/fav/favicon.png" />
<link rel="icon" href="/public/favicon.png" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>loading...</title>

Loading…
Cancel
Save