mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🐛 包含较大列表的文档加载不全 https://github.com/siyuan-note/siyuan/issues/5798
This commit is contained in:
parent
8eb59a56d3
commit
39b4587eb5
2 changed files with 15 additions and 13 deletions
|
|
@ -421,7 +421,7 @@ func BlockWordCount(id string) (blockRuneCount, blockWordCount, rootBlockRuneCou
|
|||
return
|
||||
}
|
||||
|
||||
func GetDoc(startID, endID, id string, index int, keyword string, mode int, size int) (blockCount int, dom, parentID, parent2ID, rootID, typ string, eof bool, boxID, docPath string, err error) {
|
||||
func GetDoc(startID, endID, id string, index int, keyword string, mode int, size int) (blockCount, childBlockCount int, dom, parentID, parent2ID, rootID, typ string, eof bool, boxID, docPath string, err error) {
|
||||
WaitForWritingFiles() // 写入数据时阻塞,避免获取到的数据不一致
|
||||
|
||||
inputIndex := index
|
||||
|
|
@ -529,6 +529,7 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
|
|||
}
|
||||
|
||||
blockCount = tree.DocBlockCount()
|
||||
childBlockCount = treenode.CountBlockNodes(tree.Root)
|
||||
if ast.NodeDocument == node.Type {
|
||||
parentID = node.ID
|
||||
parent2ID = parentID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue