mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
♻️ Improve outline loading mechanism https://github.com/siyuan-note/siyuan/issues/10884
This commit is contained in:
parent
7510c7dd22
commit
6c812b1ca9
1 changed files with 3 additions and 2 deletions
|
|
@ -221,12 +221,13 @@ func PushReloadDoc(rootID string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func PushSaveDoc(rootID, typ string, sources interface{}) {
|
func PushSaveDoc(rootID, typ string, sources interface{}) {
|
||||||
data := map[string]interface{}{
|
evt := NewCmdResult("savedoc", 0, PushModeBroadcast)
|
||||||
|
evt.Data = map[string]interface{}{
|
||||||
"rootID": rootID,
|
"rootID": rootID,
|
||||||
"type": typ,
|
"type": typ,
|
||||||
"sources": sources,
|
"sources": sources,
|
||||||
}
|
}
|
||||||
BroadcastByType("main", "savedoc", 0, "", data)
|
PushEvent(evt)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PushProtyleReload(rootID string) {
|
func PushProtyleReload(rootID string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue