mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Improve export preview mode https://github.com/siyuan-note/siyuan/issues/11981
This commit is contained in:
parent
4f31068205
commit
827819ef67
4 changed files with 29 additions and 7 deletions
|
|
@ -38,8 +38,13 @@ func getDocOutline(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
preview := false
|
||||
if previewArg := arg["preview"]; nil != previewArg {
|
||||
preview = previewArg.(bool)
|
||||
}
|
||||
|
||||
rootID := arg["id"].(string)
|
||||
headings, err := model.Outline(rootID)
|
||||
headings, err := model.Outline(rootID, preview)
|
||||
if err != nil {
|
||||
ret.Code = 1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue