Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/13409

Vanessaa5c6b68103f0
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index d5332add16..48c2402f13 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -390,6 +390,10 @@ export class Outline extends Model {
id: this.blockId,
preview: this.isPreview
}, response => {
+ // 文档切换后不再更新原有推送 https://github.com/siyuan-note/siyuan/issues/13409
+ if (data.data.rootID !== this.blockId) {
+ return;
+ }
this.update(response);
// https://github.com/siyuan-note/siyuan/issues/8372
if (getSelection().rangeCount > 0) {