From 62b1c51ec41d23b297ac886b221917216a45fcd2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Feb 2025 18:18:58 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=AF=BC=E5=85=A5=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=9A=84=E9=A1=B9=E6=B2=A1=E6=9C=89=E5=B1=95=E5=BC=80=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/menus/navigation.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts index bc57463df..2d182146c 100644 --- a/app/src/menus/navigation.ts +++ b/app/src/menus/navigation.ts @@ -722,12 +722,8 @@ export const genImportMenu = (notebookId: string, pathString: string) => { files = (getDockByType("file").data["file"] as Files); /// #endif const liElement = files.element.querySelector(`[data-path="${pathString}"]`); - const toggleElement = liElement.querySelector(".b3-list-item__arrow--open"); - if (toggleElement) { - toggleElement.classList.remove("b3-list-item__arrow--open"); - liElement.nextElementSibling?.remove(); - } - files.getLeaf(liElement, notebookId); + liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden") + files.getLeaf(liElement, notebookId, true); window.siyuan.menus.menu.remove(); }; /// #if !BROWSER