diff --git a/backend/init/router/router.go b/backend/init/router/router.go index 01f6c1310..689a0992a 100644 --- a/backend/init/router/router.go +++ b/backend/init/router/router.go @@ -17,8 +17,7 @@ import ( ) func setWebStatic(rootRouter *gin.Engine) { - rootRouter.StaticFS("/kubepi/login/onepanel", http.FS(web.IndexHtml)) - rootRouter.StaticFS("/favicon.ico", http.FS(web.Favicon)) + rootRouter.StaticFS("/fav", 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) diff --git a/cmd/server/web/web.go b/cmd/server/web/web.go index f7ccfdfbd..dc7a3d3b0 100644 --- a/cmd/server/web/web.go +++ b/cmd/server/web/web.go @@ -11,5 +11,5 @@ var Assets embed.FS //go:embed index.html var IndexByte []byte -//go:embed favicon.ico +//go:embed favicon.png var Favicon embed.FS diff --git a/frontend/index.html b/frontend/index.html index 0e04fb870..2539871e2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - + loading...