From e6b848d62b0c1fe4a3b6b48f2064b36b6adcb136 Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Wed, 19 Sep 2018 16:13:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:1=E3=80=81=E4=BC=98=E5=8C=96=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=84=9A=E6=9C=AC=E5=8A=9F=E8=83=BD=202?= =?UTF-8?q?=E3=80=81=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/BaseController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/BaseController.go b/controllers/BaseController.go index 8c5edd10..3d026b87 100644 --- a/controllers/BaseController.go +++ b/controllers/BaseController.go @@ -75,7 +75,7 @@ func (c *BaseController) Prepare() { c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style", "github") if b, err := ioutil.ReadFile(filepath.Join(beego.BConfig.WebConfig.ViewsPath, "widgets", "scripts.tpl")); err == nil { - c.Data["Scripts0"] = template.HTML(string(b)) + c.Data["Scripts"] = template.HTML(string(b)) } }