From 33fa1700f8e05825bda65d03b4d70de2647abfd0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 30 Oct 2022 09:38:54 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=8C=81=E4=B9=85=E5=8C=96=20localStor?= =?UTF-8?q?age=20https://github.com/siyuan-note/siyuan/issues/6404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/system.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/api/system.go b/kernel/api/system.go index 4581474e5..60abdb9bf 100644 --- a/kernel/api/system.go +++ b/kernel/api/system.go @@ -168,13 +168,6 @@ func getLocalStorage(c *gin.Context) { ret := gulu.Ret.NewResult() defer c.JSON(http.StatusOK, ret) - arg, ok := util.JsonArg(c, ret) - if !ok { - return - } - - key := arg["key"].(string) - lsPath := filepath.Join(util.DataDir, "storage/local.json") if !gulu.File.IsExist(lsPath) { return @@ -194,8 +187,7 @@ func getLocalStorage(c *gin.Context) { return } - value := ls[key] - ret.Data = value + ret.Data = ls } func setLocalStorage(c *gin.Context) {