更新搜索框
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user