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

This commit is contained in:
Vanessa 2025-02-16 18:18:58 +08:00
parent e1218a1381
commit 62b1c51ec4

View file

@ -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