mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
7a138a5836
commit
0428d050d0
2 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue