Browse Source

fix: Js content-type

lejianwen 11 months ago
parent
commit
8ff9a12a34
1 changed files with 1 additions and 0 deletions
  1. 1 0
      http/controller/web/index.go

+ 1 - 0
http/controller/web/index.go

@@ -23,5 +23,6 @@ localStorage.setItem(ws2_prefix+'api-server', "` + apiServer + `")
23 23
 
24 24
 window.webclient_magic_queryonline = ` + magicQueryonline + ``
25 25
 
26
+	c.Header("Content-Type", "application/javascript")
26 27
 	c.String(200, tmp)
27 28
 }