mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🚨
This commit is contained in:
parent
c8b05a6b96
commit
ac8748d161
13 changed files with 36 additions and 36 deletions
|
|
@ -388,13 +388,13 @@ const genImportMenu = (notebookId: string, pathString: string) => {
|
|||
formData.append("notebook", notebookId);
|
||||
formData.append("toPath", pathString);
|
||||
fetchPost("/api/import/importSY", formData, () => {
|
||||
let files
|
||||
let files;
|
||||
/// #if MOBILE
|
||||
files = window.siyuan.mobile.files
|
||||
files = window.siyuan.mobile.files;
|
||||
/// #else
|
||||
files = (getDockByType("file").data["file"] as Files);
|
||||
/// #endif
|
||||
const liElement = files.element.querySelector(`[data-path="${pathString}"]`)
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue