浏览代码

:art: Support export and import settings https://github.com/siyuan-note/siyuan/issues/10617

Daniel 9 月之前
父节点
当前提交
0c450d9fcd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      kernel/api/system.go

+ 5 - 0
kernel/api/system.go

@@ -230,6 +230,11 @@ func exportConf(c *gin.Context) {
 		return
 	}
 
+	if nil != clonedConf.Appearance {
+		clonedConf.Appearance.DarkThemes = nil
+		clonedConf.Appearance.LightThemes = nil
+		clonedConf.Appearance.Icons = nil
+	}
 	if nil != clonedConf.Editor {
 		clonedConf.Editor.Emoji = []string{}
 	}