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

This commit is contained in:
Liang Ding 2022-07-15 10:31:15 +08:00
parent 8eb6d63f9c
commit d3b603ff6b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

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