🎨 间隔复习界面面包屑不包含标记元素

This commit is contained in:
Liang Ding 2022-12-26 19:28:47 +08:00
parent 855b92f4ca
commit 3db25a7259
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 38 additions and 17 deletions

View file

@ -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()