mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 localStorage 支持在多界面实例间同步 https://github.com/siyuan-note/siyuan/issues/6965
This commit is contained in:
parent
3adb7d9ad0
commit
95bb18afe1
12 changed files with 49 additions and 55 deletions
|
|
@ -76,7 +76,7 @@ func renameNotebook(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
evt := util.NewCmdResult("renamenotebook", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("renamenotebook", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": notebook,
|
||||
"name": name,
|
||||
|
|
@ -101,7 +101,7 @@ func removeNotebook(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
evt := util.NewCmdResult("unmount", 0, util.PushModeBroadcast, 0)
|
||||
evt := util.NewCmdResult("unmount", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": notebook,
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ func createNotebook(c *gin.Context) {
|
|||
"notebook": model.Conf.Box(id),
|
||||
}
|
||||
|
||||
evt := util.NewCmdResult("createnotebook", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("createnotebook", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": model.Conf.Box(id),
|
||||
"existed": existed,
|
||||
|
|
@ -164,7 +164,7 @@ func openNotebook(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
evt := util.NewCmdResult("mount", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("mount", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": model.Conf.Box(notebook),
|
||||
"existed": existed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue