mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 导入文档的项没有展开箭头
This commit is contained in:
parent
e1218a1381
commit
62b1c51ec4
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue