mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 间隔复习界面面包屑不包含标记元素
This commit is contained in:
parent
855b92f4ca
commit
3db25a7259
8 changed files with 38 additions and 17 deletions
|
|
@ -325,7 +325,15 @@ func getBlockBreadcrumb(c *gin.Context) {
|
|||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
blockPath, err := model.BuildBlockBreadcrumb(id)
|
||||
excludeTypesArg := arg["excludeTypes"]
|
||||
var excludeTypes []string
|
||||
if nil != excludeTypesArg {
|
||||
for _, excludeType := range excludeTypesArg.([]interface{}) {
|
||||
excludeTypes = append(excludeTypes, excludeType.(string))
|
||||
}
|
||||
}
|
||||
|
||||
blockPath, err := model.BuildBlockBreadcrumb(id, excludeTypes)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue