mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 搜索结果显示数 最小限制为 32 https://github.com/siyuan-note/siyuan/issues/7384
This commit is contained in:
parent
f4f08b1fcf
commit
5ca70f5195
2 changed files with 5 additions and 2 deletions
|
|
@ -209,8 +209,8 @@ func setSearch(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if 1 > s.Limit {
|
||||
s.Limit = 64
|
||||
if 32 > s.Limit {
|
||||
s.Limit = 32
|
||||
}
|
||||
|
||||
oldCaseSensitive := model.Conf.Search.CaseSensitive
|
||||
|
|
|
|||
|
|
@ -293,6 +293,9 @@ func InitConf() {
|
|||
if 1 > Conf.Search.Limit {
|
||||
Conf.Search.Limit = 64
|
||||
}
|
||||
if 32 > Conf.Search.Limit {
|
||||
Conf.Search.Limit = 32
|
||||
}
|
||||
if 1 > Conf.Search.BacklinkMentionKeywordsLimit {
|
||||
Conf.Search.BacklinkMentionKeywordsLimit = 512
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue