Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: localStorage 支持在多界面实例间同步 https://github.com/siyuan-note/siyuan/issues/6965

Liang Ding8e0f06de90db
diff --git a/kernel/api/storage.go b/kernel/api/storage.go
index 0066eed892..65f4f0e105 100644
--- a/kernel/api/storage.go
+++ b/kernel/api/storage.go
@@ -196,7 +196,7 @@ func setLocalStorage(c *gin.Context) {
}
app := arg["app"].(string)
- evt := util.NewCmdResult("transactions", 0, util.PushModeBroadcastMainExcludeSelfApp, util.PushModeBroadcastMainExcludeSelfApp)
+ evt := util.NewCmdResult("setLocalStorage", 0, util.PushModeBroadcastMainExcludeSelfApp, util.PushModeBroadcastMainExcludeSelfApp)
evt.AppId = app
evt.Data = val
util.PushEvent(evt)