|
@ -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 { |
|
|