mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0cb814d617
commit
6726ea51df
1 changed files with 10 additions and 0 deletions
|
|
@ -1612,6 +1612,16 @@ func (tx *Transaction) doUpdate(operation *Operation) (ret *TxErr) {
|
|||
util.PushEvent(evt)
|
||||
}
|
||||
|
||||
if avNames := getAvNames(updatedNode.IALAttr(av.NodeAttrNameAvs)); "" != avNames {
|
||||
// updateBlock 会清空数据库角标 https://github.com/siyuan-note/siyuan/issues/16549
|
||||
go func() {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
oldAttrs := parse.IAL2Map(updatedNode.KramdownIAL)
|
||||
updatedNode.SetIALAttr(av.NodeAttrViewNames, avNames)
|
||||
pushBroadcastAttrTransactions(oldAttrs, updatedNode)
|
||||
}()
|
||||
}
|
||||
|
||||
createdUpdated(updatedNode)
|
||||
tx.nodes[updatedNode.ID] = updatedNode
|
||||
if err = tx.writeTree(tree); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue