更新搜索框

This commit is contained in:
JiXieShi
2024-03-28 17:32:11 +08:00
parent 6e70a1d4df
commit 9c0d18a6d0
4 changed files with 38 additions and 38 deletions

View File

@@ -24,7 +24,6 @@ func Index(w http.ResponseWriter, r *http.Request) {
search := r.Form.Get("search")
category := r.Form.Get("category")
tag := r.Form.Get("tag")
if search != "" || category != "" || tag != "" {
articles = models.ArticleSearch(&articles, search, category, tag)
}