A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: render question list, pagination error
kumfoabc9d9ad96c2
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.goindex 7c9d94cd..903359ec 100644--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@ -77,10 +77,7 @@ func (tc *TemplateController) Index(ctx *gin.Context) {return}- var (- page = req.Page- pageSize = req.PageSize- )+ var page = req.Pagedata, count, err := tc.templateRenderController.Index(ctx, req)if err != nil {@@ -92,7 +89,7 @@ func (tc *TemplateController) Index(ctx *gin.Context) {"scriptPath": tc.scriptPath,"cssPath": tc.cssPath,"data": data,- "page": templaterender.Paginator(page, pageSize, count),+ "page": templaterender.Paginator(page, req.PageSize, count),})}