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/14152

Vanessa5bb03482dfc8
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 353cd32eb7..bc821d5e02 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -128,6 +128,16 @@ export class Protyle {
case "reload":
if (data.data === this.protyle.block.rootID) {
reloadProtyle(this.protyle, false);
+ getAllModels().outline.forEach(item => {
+ if (item.blockId === data.data) {
+ fetchPost("/api/outline/getDocOutline", {
+ id: item.blockId,
+ preview: item.isPreview
+ }, response => {
+ item.update(response);
+ });
+ }
+ })
}
break;
case "refreshAttributeView":