mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
This commit is contained in:
parent
6cba470b69
commit
91d04fa15e
13 changed files with 166 additions and 5 deletions
|
|
@ -70,6 +70,7 @@ type AppConf struct {
|
|||
Search *conf.Search `json:"search"` // 搜索配置
|
||||
Stat *conf.Stat `json:"stat"` // 统计
|
||||
Api *conf.API `json:"api"` // API
|
||||
Repo *conf.Repo `json:"repo"` // 数据仓库
|
||||
Newbie bool `json:"newbie"` // 是否是安装后第一次启动
|
||||
}
|
||||
|
||||
|
|
@ -222,6 +223,10 @@ func InitConf() {
|
|||
Conf.Api = conf.NewAPI()
|
||||
}
|
||||
|
||||
if nil == Conf.Repo {
|
||||
Conf.Repo = conf.NewRepo()
|
||||
}
|
||||
|
||||
if 1440 < Conf.Editor.GenerateHistoryInterval {
|
||||
Conf.Editor.GenerateHistoryInterval = 1440
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue