🎨 数据历史文档和资源文件支持分页和搜索 https://github.com/siyuan-note/siyuan/issues/4901

This commit is contained in:
Liang Ding 2022-08-29 11:29:52 +08:00
parent 231cb71a4d
commit 10032fd154
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 32 additions and 86 deletions

View file

@ -114,7 +114,11 @@ func getDocHistory(c *gin.Context) {
}
notebook := arg["notebook"].(string)
histories, err := model.GetDocHistory(notebook)
page := 1
if nil != arg["page"] {
page = int(arg["page"].(float64))
}
histories, err := model.GetDocHistory(notebook, page)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()