mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-15 22:20:13 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
186cc1465e
2 changed files with 10 additions and 1 deletions
|
|
@ -903,7 +903,6 @@ func batchUpdateBlock(c *gin.Context) {
|
|||
|
||||
ret.Data = transactions
|
||||
broadcastTransactions(transactions)
|
||||
|
||||
}
|
||||
|
||||
func deleteBlock(c *gin.Context) {
|
||||
|
|
|
|||
|
|
@ -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