🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735

This commit is contained in:
Liang Ding 2022-08-31 22:13:59 +08:00
parent 90678a7915
commit 5d403e3505
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 6 additions and 2 deletions

View file

@ -121,7 +121,7 @@ func getDocHistoryContent(c *gin.Context) {
if nil != k {
keyword = k.(string)
}
content, isLargeDoc, err := model.GetDocHistoryContent(historyPath, keyword)
id, rootID, content, isLargeDoc, err := model.GetDocHistoryContent(historyPath, keyword)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
@ -129,6 +129,8 @@ func getDocHistoryContent(c *gin.Context) {
}
ret.Data = map[string]interface{}{
"id": id,
"rootID": rootID,
"content": content,
"isLargeDoc": isLargeDoc,
}