mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Improve export preview mode https://github.com/siyuan-note/siyuan/issues/16732
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
bb4d95ffa0
commit
156a28f27d
4 changed files with 49 additions and 14 deletions
|
|
@ -98,6 +98,16 @@ func pushTransactions(app, session string, transactions []*model.Transaction) {
|
|||
evt.AppId = app
|
||||
evt.SessionId = session
|
||||
evt.Data = transactions
|
||||
|
||||
var rootIDs []string
|
||||
for _, tx := range transactions {
|
||||
rootIDs = append(rootIDs, tx.GetChangedRootIDs()...)
|
||||
}
|
||||
rootIDs = gulu.Str.RemoveDuplicatedElem(rootIDs)
|
||||
evt.Context = map[string]any{
|
||||
"rootIDs": rootIDs,
|
||||
}
|
||||
|
||||
for _, tx := range transactions {
|
||||
tx.WaitForCommit()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue