From d3b603ff6b74ac00a425102f425bdf53099d6311 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 15 Jul 2022 10:31:15 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=BC=80=E5=90=AF=20`=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E5=85=B3=E9=97=AD=E6=89=80=E6=9C=89=E9=A1=B5?= =?UTF-8?q?=E7=AD=BE=20`=20=E5=90=8E=E4=BB=85=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=B2=A1=E6=9C=89=E9=92=89=E4=BD=8F=E7=9A=84?= =?UTF-8?q?=E9=A1=B5=E7=AD=BE=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/5418?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/system.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/api/system.go b/kernel/api/system.go index 2e5b3a0d8..6674bbfee 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) {