Skip to content

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

:art: 开启 `启动时关闭所有页签 ` 后仅启动时关闭没有钉住的页签 https://github.com/siyuan-note/siyuan/issues/5418

Liang Dingd3b603ff6b74
diff --git a/kernel/api/system.go b/kernel/api/system.go
index 2e5b3a0d85..6674bbfee3 100644
--- a/kernel/api/system.go
+++ b/kernel/api/system.go
@@ -130,11 +130,19 @@ func checkUpdate(c *gin.Context) {
model.CheckUpdate(showMsg)
}
+var start = true // 是否是启动
func getConf(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
- ret.Data = model.Conf
+ ret.Data = map[string]interface{}{
+ "conf": model.Conf,
+ "start": start,
+ }
+
+ if start {
+ start = false
+ }
}
func setUILayout(c *gin.Context) {