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",