Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 导入文档的项没有展开箭头

Vanessa62b1c51ec41d
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts
index bc57463df7..2d182146cb 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