🎨 Improve av refresh https://github.com/siyuan-note/siyuan/issues/12997
This commit is contained in:
parent
1900b935aa
commit
94e28c8e64
1 changed files with 7 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue