瀏覽代碼

restore html when load

zu1k 5 年之前
父節點
當前提交
53e5dc4011
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/router.go

+ 1 - 0
api/router.go

@@ -206,6 +206,7 @@ func Run() {
 }
 
 func loadTemplate() (t *template.Template, err error) {
+	_ = binhtml.RestoreAssets("", "assets/html")
 	t = template.New("")
 	for _, fileName := range binhtml.AssetNames() {
 		data := binhtml.MustAsset(fileName)