An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5275
Vanessa964cabe3f0e4
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.tsindex 534a9b7a3f..64545c4201 100644--- a/app/src/layout/Wnd.ts+++ b/app/src/layout/Wnd.ts@@ -479,13 +479,19 @@ export class Wnd {} else {this.remove();}- getAllModels().editor.forEach(item => {- if (!item.element.classList.contains("fn__none")) {- setPanelFocus(item.parent.parent.headersElement.parentElement);- updatePanelByEditor(item.editor.protyle, true, true);- return;- }- });+ // 关闭分屏页签后光标消失+ const editors = getAllModels().editor;+ if (editors.length === 0) {+ updatePanelByEditor();+ } else {+ editors.forEach(item => {+ if (!item.element.classList.contains("fn__none")) {+ setPanelFocus(item.parent.parent.headersElement.parentElement);+ updatePanelByEditor(item.editor.protyle, true, true);+ return;+ }+ });+ }return;}if (item.headElement) {