Skip to content

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

:bug: 图标全部消失 https://github.com/siyuan-note/siyuan/issues/6974

Liang Dingc957dfc6b257
diff --git a/kernel/model/storage.go b/kernel/model/storage.go
index 7e1b427c47..2ca930c969 100644
--- a/kernel/model/storage.go
+++ b/kernel/model/storage.go
@@ -342,6 +342,7 @@ func setLocalStorage(val interface{}) (err error) {
}
func getLocalStorage() (ret map[string]interface{}, err error) {
+ ret = map[string]interface{}{}
lsPath := filepath.Join(util.DataDir, "storage/local.json")
if !gulu.File.IsExist(lsPath) {
return
@@ -353,7 +354,6 @@ func getLocalStorage() (ret map[string]interface{}, err error) {
return
}
- ret = map[string]interface{}{}
if err = gulu.JSON.UnmarshalJSON(data, &ret); nil != err {
logging.LogErrorf("unmarshal storage [local] failed: %s", err)
return