Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 大纲面板和大纲页签改进 https://github.com/siyuan-note/siyuan/issues/5087

Liang Ding213862b5c470
diff --git a/kernel/model/outline.go b/kernel/model/outline.go
index ed8238aa12..178ac21cc2 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,
})
}
}