🎨 Add configuration item Editor - [[ Only search doc block Fix https://github.com/siyuan-note/siyuan/issues/8077

This commit is contained in:
Liang Ding
2023-04-22 09:18:00 +08:00
parent 4393d844ad
commit 4ec4e1d882
12 changed files with 38 additions and 13 deletions

View File

@@ -191,16 +191,11 @@ func searchRefBlock(c *gin.Context) {
return
}
onlyDoc := false
if nil != arg["onlyDoc"] {
onlyDoc = arg["onlyDoc"].(bool)
}
rootID := arg["rootID"].(string)
id := arg["id"].(string)
keyword := arg["k"].(string)
beforeLen := int(arg["beforeLen"].(float64))
blocks, newDoc := model.SearchRefBlock(id, rootID, keyword, beforeLen, onlyDoc)
blocks, newDoc := model.SearchRefBlock(id, rootID, keyword, beforeLen)
ret.Data = map[string]interface{}{
"blocks": blocks,
"newDoc": newDoc,