From 213862b5c47078f497ffcbe028f7724ade1de5bc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 3 Jun 2022 11:17:59 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=A4=A7=E7=BA=B2=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=92=8C=E5=A4=A7=E7=BA=B2=E9=A1=B5=E7=AD=BE=E6=94=B9=E8=BF=9B?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/5087?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/outline.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/kernel/model/outline.go b/kernel/model/outline.go index ed8238aa1..178ac21cc 100644 --- a/kernel/model/outline.go +++ b/kernel/model/outline.go @@ -88,14 +88,15 @@ func Outline(rootID string) (ret []*Path, err error) { for _, b := range children { resetDepth(b, 0) ret = append(ret, &Path{ - ID: b.ID, - Box: b.Box, - Name: b.Content, - Type: b.Type, - SubType: b.SubType, - Blocks: b.Children, - Depth: 0, - Count: b.Count, + ID: b.ID, + Box: b.Box, + Name: b.Content, + NodeType: b.Type, + Type: "outline", + SubType: b.SubType, + Blocks: b.Children, + Depth: 0, + Count: b.Count, }) } }