diff --git a/src/http/controller/article.go b/src/http/controller/article.go index d0fc00b6..78531252 100644 --- a/src/http/controller/article.go +++ b/src/http/controller/article.go @@ -66,10 +66,10 @@ func (ArticleController) ReadList(ctx echo.Context) error { num := len(articles) if num == 0 { - if curPage == int(total) { - return render(ctx, "articles/list.html", map[string]interface{}{"articles": articles, "activeArticles": "active"}) - } - return ctx.Redirect(http.StatusSeeOther, "/articles") + //if curPage == int(total) { + return render(ctx, "articles/list.html", map[string]interface{}{"articles": articles, "activeArticles": "active"}) + //} + //return ctx.Redirect(http.StatusSeeOther, "/articles") } // 获取当前用户喜欢对象信息 diff --git a/src/http/controller/project.go b/src/http/controller/project.go index 38d4f214..5143f9aa 100644 --- a/src/http/controller/project.go +++ b/src/http/controller/project.go @@ -54,11 +54,11 @@ func (ProjectController) ReadList(ctx echo.Context) error { num := len(projects) if num == 0 { - if curPage == int(total) { - return render(ctx, "projects/list.html", map[string]interface{}{"projects": projects, "activeProjects": "active"}) - } else { - return ctx.Redirect(http.StatusSeeOther, "/projects") - } + //if curPage == int(total) { + return render(ctx, "projects/list.html", map[string]interface{}{"projects": projects, "activeProjects": "active"}) + //} else { + // return ctx.Redirect(http.StatusSeeOther, "/projects") + //} } // 获取当前用户喜欢对象信息