From 01223c811099bb77b0ee781392ed4a5ae03e8210 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 22 Dec 2025 18:38:40 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16669 --- app/src/util/pathName.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index c48e1bdbb..28fcd24c9 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -608,7 +608,10 @@ const getLeaf = (liElement: HTMLElement, flashcard: boolean) => { liElement.nextElementSibling.classList.remove("fn__none"); return; } - + if (liElement.getAttribute("data-loading") === "true") { + return; + } + liElement.setAttribute("data-loading", "true"); const notebookId = liElement.getAttribute("data-box"); fetchPost("/api/filetree/listDocsByPath", { notebook: notebookId, @@ -616,6 +619,7 @@ const getLeaf = (liElement: HTMLElement, flashcard: boolean) => { flashcard, app: Constants.SIYUAN_APPID, }, response => { + liElement.removeAttribute("data-loading"); if (response.data.files.length === 0) { showMessage(window.siyuan.languages.emptyContent); return;