Skip to content

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

✨ 块引浮窗显示文档标题 #15 (#15929)

Achuan-2a9cc6acfd6db
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts
index 2fa638206b..c72ebf302e 100644
--- a/app/src/block/Panel.ts
+++ b/app/src/block/Panel.ts
@@ -182,6 +182,7 @@ export class BlockPanel {
scroll: true,
gutter: true,
breadcrumbDocName: true,
+ title: response.data.rootID === this.refDefs[index].refID, // 如果块是文档,显示文档标题
},
typewriterMode: false,
after: (editor) => {