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

Vanessae01b7256b557
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 73422b4300..72274c8c95 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -772,7 +772,8 @@ export class Files extends Model {
if (!liElement) {
const dirname = pathPosix().dirname(currentPath);
if (dirname === "/") {
- currentPath = dirname;
+ this.getLeaf(treeElement.firstElementChild, notebookId, true);
+ break;
} else {
currentPath = dirname + ".sy";
}