🐛 Focused heading block export does not contain its following blocks Fix https://github.com/siyuan-note/siyuan/issues/7834

This commit is contained in:
Liang Ding 2023-03-31 09:44:17 +08:00
parent 628a83eaef
commit f7d9540b67
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -271,7 +271,7 @@ func IndexBlockTree(tree *parse.Tree) {
slice.m.Unlock()
if nil != bt {
if bt.Updated != n.IALAttr("updated") || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
if bt.Updated != n.IALAttr("updated") || bt.Type != TypeAbbr(n.Type.String()) || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
children := ChildBlockNodes(n) // 需要考虑子块,因为一些操作(比如移动块)后需要同时更新子块
changedNodes = append(changedNodes, children...)
}