🎨 Improve query embed block auto refresh https://github.com/siyuan-note/siyuan/issues/14370

This commit is contained in:
Daniel 2025-03-16 21:02:30 +08:00
parent 5dab0ecdf6
commit 2a0034fa86
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 0 additions and 12 deletions

View file

@ -236,12 +236,6 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
switch defNode.refType {
case "ref-d":
task.AppendAsyncTaskWithDelay(task.SetRefDynamicText, 200*time.Millisecond, util.PushSetRefDynamicText, refTreeID, n.ID, defNode.id, defNode.refText)
case "embed":
go func() {
time.Sleep(100 * time.Millisecond)
sql.FlushQueue()
task.AppendAsyncTaskWithDelay(task.ReloadEmbedBlock, 200*time.Millisecond, util.PushReloadEmbedBlock, refTreeID, n.ID)
}()
}
}
return ast.WalkContinue