Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-04-08 17:29:38 +08:00
commit 1ef5e8722a

View file

@ -221,12 +221,13 @@ func PushReloadDoc(rootID string) {
}
func PushSaveDoc(rootID, typ string, sources interface{}) {
data := map[string]interface{}{
evt := NewCmdResult("savedoc", 0, PushModeBroadcast)
evt.Data = map[string]interface{}{
"rootID": rootID,
"type": typ,
"sources": sources,
}
BroadcastByType("main", "savedoc", 0, "", data)
PushEvent(evt)
}
func PushProtyleReload(rootID string) {