An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle:
Vanessa69a599af1540
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.tsindex 4060aa6b36..0e536d47e2 100644--- a/app/src/layout/dock/index.ts+++ b/app/src/layout/dock/index.ts@@ -320,7 +320,7 @@ export class Dock {this.layout.element.querySelector(".layout__tab--active")?.classList.remove("layout__tab--active");}- public toggleModel(type: string, show = false, close = false, hide = false, saveLayout = true) {+ public toggleModel(type: string, show = false, close = false, hide = false, isSaveLayout = true) {if (!type) {return;}@@ -366,7 +366,7 @@ export class Dock {document.getElementById("drag")?.classList.remove("fn__hidden");}// 关闭 dock 后设置光标,初始化的时候不能设置,否则关闭文档树且多页签时会请求两次 getDoc- if (saveLayout && !document.querySelector(".layout__center .layout__wnd--active")) {+ if (isSaveLayout && !document.querySelector(".layout__center .layout__wnd--active")) {const currentElement = document.querySelector(".layout__center ul.layout-tab-bar .item--focus");if (currentElement) {getAllTabs().find(item => {@@ -578,7 +578,7 @@ export class Dock {anotherWnd.element.style.height = "";anotherWnd.element.style.width = "";}- resizeTabs(saveLayout);+ resizeTabs(isSaveLayout);this.showDock();}