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

Vanessade69e19ab74d
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index 3eabc89fd3..91be8565e1 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -376,8 +376,11 @@ export class Outline extends Model {
let needReload = false;
const ops = data.data.sources[0];
ops.doOperations.find((item: IOperation) => {
- if ((item.action === "update" || item.action === "insert") &&
- (item.data.indexOf('data-type="NodeHeading"') > -1 || item.data.indexOf(`<div contenteditable="true" spellcheck="${window.siyuan.config.editor.spellcheck}"><wbr></div>`) > -1)) {
+ if (item.action === "update" &&
+ (this.element.querySelector(`.b3-list-item[data-node-id="${item.id}"]`) || item.data.indexOf('data-type="NodeHeading"') > -1)) {
+ needReload = true;
+ return true;
+ } else if (item.action === "insert" && item.data.indexOf('data-type="NodeHeading"') > -1) {
needReload = true;
return true;
} else if (item.action === "delete" || item.action === "move") {