🎨 API listDocsByPath add an optional parameter maxListCount Fix https://github.com/siyuan-note/siyuan/issues/7993

This commit is contained in:
Liang Ding 2023-04-14 12:00:11 +08:00
parent 0b0712f741
commit ee3138be64
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 17 additions and 13 deletions

View file

@ -110,7 +110,7 @@ func loadTreeNodes(box string, p string, level int) (ret []*ast.Node, err error)
}
func buildBlockChildren(block *Block) (err error) {
files, _, err := ListDocTree(block.Box, block.Path, Conf.FileTree.Sort, false)
files, _, err := ListDocTree(block.Box, block.Path, Conf.FileTree.Sort, false, Conf.FileTree.MaxListCount)
if nil != err {
return
}