An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/5420
Vanessa68beb1f5195f
diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex 642a118df4..1426ee3c57 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -209,19 +209,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IModfocusBlock(nodeElement);scrollCenter(editor.editor.protyle, nodeElement, true);} else if (editor.editor.protyle.block.rootID === options.id) {- if (editor.editor.protyle.wysiwyg.element.firstElementChild.getAttribute("data-node-index") === "0") {- focusBlock(editor.editor.protyle.wysiwyg.element.firstElementChild);- editor.editor.protyle.contentElement.scrollTop = 0;- } else {- // 动态加载- fetchPost("/api/filetree/getDoc", {- id: options.id,- mode: 3,- size: Constants.SIZE_GET,- }, getResponse => {- onGet(getResponse, editor.editor.protyle, options.action);- });- }+ // 由于 https://github.com/siyuan-note/siyuan/issues/5420,移除定位} else if (editor.editor.protyle.toolbar.range) {nodeElement = hasClosestBlock(editor.editor.protyle.toolbar.range.startContainer) as Element;focusByRange(editor.editor.protyle.toolbar.range);