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) {