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: https://github.com/siyuan-note/siyuan/issues/14426
Vanessa69642e3bac3c
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex f6ae9cdfca..217738726e 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -520,11 +520,10 @@ export class Files extends Model {return;}const notebookSort = notebookElement.getAttribute("data-sortmode");- if ((- notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15")- ) &&- // 防止文档拖拽到笔记本外- !(!sourceOnlyRoot && targetType === "navigation-root")) {+ if ((sourceOnlyRoot && targetType === "navigation-root" && window.siyuan.config.fileTree.sort === 6) ||+ (!sourceOnlyRoot && targetType !== "navigation-root" &&+ (notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15")))+ ) {const nodeRect = liElement.getBoundingClientRect();const dragHeight = nodeRect.height * .2;if (targetType === "navigation-root" && sourceOnlyRoot) {