mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Rows non-bound in the database support Add to Database https://github.com/siyuan-note/siyuan/issues/11093
This commit is contained in:
parent
9157a6e6e6
commit
e16c3cb0fe
2 changed files with 10 additions and 3 deletions
|
|
@ -318,7 +318,13 @@ func searchAttributeView(c *gin.Context) {
|
|||
}
|
||||
|
||||
keyword := arg["keyword"].(string)
|
||||
results := model.SearchAttributeView(keyword)
|
||||
var excludes []string
|
||||
if nil != arg["excludes"] {
|
||||
for _, e := range arg["excludes"].([]interface{}) {
|
||||
excludes = append(excludes, e.(string))
|
||||
}
|
||||
}
|
||||
results := model.SearchAttributeView(keyword, excludes)
|
||||
ret.Data = map[string]interface{}{
|
||||
"results": results,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue