mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-05 05:42:18 +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)
|
affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs)
|
||||||
for _, avID := range affectedAvIDs {
|
go func() {
|
||||||
ReloadAttrView(avID)
|
time.Sleep(100 * time.Millisecond)
|
||||||
}
|
sql.FlushQueue()
|
||||||
|
for _, avID := range affectedAvIDs {
|
||||||
|
ReloadAttrView(avID)
|
||||||
|
}
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tx *Transaction) doUpdateUpdated(operation *Operation) (ret *TxErr) {
|
func (tx *Transaction) doUpdateUpdated(operation *Operation) (ret *TxErr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user