From 296c3f1b48b732fd90da151ba86cadd4d02eabe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96?= <1340691923@qq.com> Date: Fri, 1 Apr 2022 17:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/config.go | 2 +- router/analysis.go | 8 ++++---- vue/package.json | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/model/config.go b/model/config.go index c4d9591..3c84ba7 100644 --- a/model/config.go +++ b/model/config.go @@ -89,7 +89,7 @@ type LogConfig struct { func (this *Config) GetCkQueryLimit() int { if this.Manager.CkQueryLimit == 0 { - return 5 + return 10 } return this.Manager.CkQueryLimit } diff --git a/router/analysis.go b/router/analysis.go index 1c75986..e876db7 100644 --- a/router/analysis.go +++ b/router/analysis.go @@ -36,13 +36,13 @@ func runAnalysis(app *fiber.App) { c.MountApi(api_config.MountApiBasePramas{Remark: "查询用户访问过的事件详情", AbsolutePath: AbsolutePath}, appG.(*fiber.Group), BehaviorAnalysisController{}.UserEventDetailList) c.MountApi(api_config.MountApiBasePramas{Remark: "查询用户访问过的事件统计", AbsolutePath: AbsolutePath}, appG.(*fiber.Group), BehaviorAnalysisController{}.UserEventCountList) - f := appG. + /*f := appG. Use(limiter.New( limiter.Config{ - Max: 1, + Max: 2, Expiration: 2 * time.Second, - })) + }))*/ - c.MountApi(api_config.MountApiBasePramas{Remark: "智能路径分析查询", AbsolutePath: AbsolutePath}, f.(*fiber.Group), BehaviorAnalysisController{}.TraceList) + c.MountApi(api_config.MountApiBasePramas{Remark: "智能路径分析查询", AbsolutePath: AbsolutePath}, appG.(*fiber.Group), BehaviorAnalysisController{}.TraceList) } } diff --git a/vue/package.json b/vue/package.json index ad0d3dc..d23020f 100644 --- a/vue/package.json +++ b/vue/package.json @@ -81,7 +81,6 @@ "vue-echarts": "^6.0.0-rc.4", "vue-good-table": "^2.21.11", "vue-infinite-scroll": "^2.0.2", - "vue-infinite-scroller": "^1.0.0", "vue-introjs": "^1.3.2", "vue-json-excel": "^0.3.0", "vue-router": "3.0.2",