This commit is contained in:
Liang Ding 2022-12-05 10:53:00 +08:00
parent 7a138a5836
commit 0428d050d0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 5 additions and 0 deletions

View file

@ -83,6 +83,9 @@ func searchTag(c *gin.Context) {
k := arg["k"].(string)
tags := model.SearchTags(k)
if 1 > len(tags) {
tags = []string{}
}
ret.Data = map[string]interface{}{
"tags": tags,
"k": k,