public_host 4 years ago
parent
commit
96c6e7f780
  1. 7
      govue/govue.go

7
govue/govue.go

@ -198,6 +198,13 @@ func (gv *GoVue) LoadStaticResources(request *http.Request, goExtDataS ...interf
} }
result, err = ioutil.ReadFile(filePath) result, err = ioutil.ReadFile(filePath)
govueDebug := request.URL.Query().Get("govue_debug")
if govueDebug != "1" {
return
}
if err != nil { if err != nil {
result, err = gv.renderErrPage(404, request, goExtDataS...) result, err = gv.renderErrPage(404, request, goExtDataS...)
if gv.CacheSec > 0 { if gv.CacheSec > 0 {

Loading…
Cancel
Save