mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 04:48:48 +01:00
🎨 查询嵌入块支持设置是否显示面包屑 https://github.com/siyuan-note/siyuan/issues/6184
This commit is contained in:
parent
c5e3a6ecf4
commit
25432c6912
8 changed files with 25 additions and 8 deletions
|
|
@ -138,8 +138,13 @@ func searchEmbedBlock(c *gin.Context) {
|
|||
if nil != headingModeArg {
|
||||
headingMode = int(headingModeArg.(float64))
|
||||
}
|
||||
breadcrumb := false
|
||||
breadcrumbArg := arg["breadcrumb"]
|
||||
if nil != breadcrumbArg {
|
||||
breadcrumb = breadcrumbArg.(bool)
|
||||
}
|
||||
|
||||
blocks := model.SearchEmbedBlock(stmt, excludeIDs, headingMode)
|
||||
blocks := model.SearchEmbedBlock(stmt, excludeIDs, headingMode, breadcrumb)
|
||||
ret.Data = map[string]interface{}{
|
||||
"blocks": blocks,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue