mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
8f566f251c
commit
de0b64f8ca
2 changed files with 15 additions and 1 deletions
|
|
@ -220,6 +220,15 @@ func PushReloadDoc(rootID string) {
|
|||
BroadcastByType("main", "reloaddoc", 0, "", rootID)
|
||||
}
|
||||
|
||||
func PushSaveDoc(rootID, typ string, sources interface{}) {
|
||||
data := map[string]interface{}{
|
||||
"rootID": rootID,
|
||||
"type": typ,
|
||||
"sources": sources,
|
||||
}
|
||||
BroadcastByType("main", "savedoc", 0, "", data)
|
||||
}
|
||||
|
||||
func PushProtyleReload(rootID string) {
|
||||
BroadcastByType("protyle", "reload", 0, "", rootID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue