From e4712012f86239517af9bf363532f6beff91dfa9 Mon Sep 17 00:00:00 2001 From: soxft Date: Wed, 4 Dec 2024 09:31:07 +0800 Subject: [PATCH] :bug: fix: wrong middleware usage in js route --- process/webutil/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/webutil/route.go b/process/webutil/route.go index 217bfd6..c733483 100644 --- a/process/webutil/route.go +++ b/process/webutil/route.go @@ -28,7 +28,7 @@ func initRoute(r *gin.Engine) { js := r.Group("js") { - static.Use(middleware.Cache()) + js.Use(middleware.Cache()) js.StaticFile("", config.DistPath+"/busuanzi.js") js.StaticFile("/jsonp", config.DistPath+"/busuanzi.jsonp.js") js.StaticFile("/lite", config.DistPath+"/busuanzi.lite.js")