mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
1fa674e430
commit
34e3261bce
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ func getDocOutline(c *gin.Context) {
|
|||
}
|
||||
|
||||
rootID := arg["id"].(string)
|
||||
if util.InvalidIDPattern(rootID, ret) {
|
||||
return
|
||||
}
|
||||
|
||||
headings, err := model.Outline(rootID, preview)
|
||||
if err != nil {
|
||||
ret.Code = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue