mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-05 06:00:56 +08:00
🎨 Improve av refresh https://github.com/siyuan-note/siyuan/issues/12997
This commit is contained in:
parent
1900b935aa
commit
94e28c8e64
@ -1270,9 +1270,13 @@ func upsertAvBlockRel(node *ast.Node) {
|
||||
}
|
||||
|
||||
affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs)
|
||||
for _, avID := range affectedAvIDs {
|
||||
ReloadAttrView(avID)
|
||||
}
|
||||
go func() {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
sql.FlushQueue()
|
||||
for _, avID := range affectedAvIDs {
|
||||
ReloadAttrView(avID)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func (tx *Transaction) doUpdateUpdated(operation *Operation) (ret *TxErr) {
|
||||
|
Loading…
Reference in New Issue
Block a user