mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨编辑器动态加载块数由定值改为可配置 https://github.com/siyuan-note/siyuan/issues/6415
This commit is contained in:
parent
a0900e5944
commit
0b31e72779
2 changed files with 7 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ func setSearch(c *gin.Context) {
|
|||
}
|
||||
|
||||
if 1 > s.Limit {
|
||||
s.Limit = 32
|
||||
s.Limit = 64
|
||||
}
|
||||
|
||||
oldCaseSensitive := model.Conf.Search.CaseSensitive
|
||||
|
|
|
|||
|
|
@ -257,10 +257,16 @@ func InitConf() {
|
|||
if 1 > Conf.Editor.HistoryRetentionDays {
|
||||
Conf.Editor.HistoryRetentionDays = 7
|
||||
}
|
||||
if 1 > Conf.Editor.DynamicLoadBlocks {
|
||||
Conf.Editor.DynamicLoadBlocks = 128
|
||||
}
|
||||
|
||||
if nil == Conf.Search {
|
||||
Conf.Search = conf.NewSearch()
|
||||
}
|
||||
if 1 > Conf.Search.Limit {
|
||||
Conf.Search.Limit = 64
|
||||
}
|
||||
|
||||
if nil == Conf.Stat {
|
||||
Conf.Stat = conf.NewStat()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue