🐛 修改命名文档块后引用动态锚文本未跟随 https://github.com/siyuan-note/siyuan/issues/6398
This commit is contained in:
parent
a6e9199d88
commit
7f75903475
2 changed files with 7 additions and 1 deletions
|
@ -179,6 +179,12 @@ func ResetBlockAttrs(id string, nameValues map[string]string) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
if ast.NodeDocument == node.Type {
|
||||
// 修改命名文档块后引用动态锚文本未跟随 https://github.com/siyuan-note/siyuan/issues/6398
|
||||
// 使用重命名文档队列来刷新引用锚文本
|
||||
updateRefTextRenameDoc(tree)
|
||||
}
|
||||
|
||||
if err = indexWriteJSONQueue(tree); nil != err {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -1235,7 +1235,7 @@ func RenameDoc(boxID, p, title string) (err error) {
|
|||
util.PushEvent(evt)
|
||||
|
||||
box.renameSubTrees(tree)
|
||||
go updateRefTextRenameDoc(tree)
|
||||
updateRefTextRenameDoc(tree)
|
||||
IncSync()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue