From e01b7256b55787324919c9cf6abfc1417becba4c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 9 Feb 2025 20:53:51 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12109 --- app/src/layout/dock/Files.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index 73422b430..72274c8c9 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"; }