mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Display document title in data history preview area https://github.com/siyuan-note/siyuan/issues/12948
This commit is contained in:
parent
face9918f1
commit
a15899d421
2 changed files with 5 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ func openRepoSnapshotDoc(c *gin.Context) {
|
|||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
content, isProtyleDoc, updated, err := model.OpenRepoSnapshotDoc(id)
|
||||
title, content, isProtyleDoc, updated, err := model.OpenRepoSnapshotDoc(id)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -78,6 +78,7 @@ func openRepoSnapshotDoc(c *gin.Context) {
|
|||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"title": title,
|
||||
"content": content,
|
||||
"isProtyleDoc": isProtyleDoc,
|
||||
"updated": updated,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue