mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Support floating window to open related database when filling in the database relation field https://github.com/siyuan-note/siyuan/issues/10915
This commit is contained in:
parent
49e62ebff5
commit
62db617f91
2 changed files with 7 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ func getAttributeViewPrimaryKeyValues(c *gin.Context) {
|
|||
if keywordArg := arg["keyword"]; nil != keywordArg {
|
||||
keyword = keywordArg.(string)
|
||||
}
|
||||
attributeViewName, rows, err := model.GetAttributeViewPrimaryKeyValues(id, keyword, page, pageSize)
|
||||
attributeViewName, databaseBlockIDs, rows, err := model.GetAttributeViewPrimaryKeyValues(id, keyword, page, pageSize)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -94,8 +94,9 @@ func getAttributeViewPrimaryKeyValues(c *gin.Context) {
|
|||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"name": attributeViewName,
|
||||
"rows": rows,
|
||||
"name": attributeViewName,
|
||||
"blockIDs": databaseBlockIDs,
|
||||
"rows": rows,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue