Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-22 16:52:27 +08:00
parent 73307c7baf
commit 0eaf3f0f8a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -21,6 +21,7 @@ import (
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/util"
)
@ -177,6 +178,13 @@ func setLocalStorage(c *gin.Context) {
return
}
if arg["app"] == nil {
logging.LogErrorf("app is nil in setLocalStorage")
ret.Code = -1
ret.Msg = "arg [app] is nil"
return
}
app := arg["app"].(string)
evt := util.NewCmdResult("setLocalStorage", 0, util.PushModeBroadcastMainExcludeSelfApp)
evt.AppId = app