This commit is contained in:
Vanessa 2023-01-07 11:51:08 +08:00
parent 182886a996
commit 17067c4d49
7 changed files with 15 additions and 15 deletions

View file

@ -109,7 +109,7 @@ const genWorkspace = (workspaceDirElement: Element) => {
});
workspaceDirElement.innerHTML = html;
});
}
};
export const popMenu = () => {
const modelElement = document.getElementById("model");
const modelMainElement = document.getElementById("modelMain");
@ -493,14 +493,14 @@ ${accountHTML}
}, () => {
exitSiYuan();
});
})
});
event.preventDefault();
event.stopPropagation();
break;
}
target = target.parentElement;
}
})
});
modelMainElement.querySelector("#importData").addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
const formData = new FormData();
formData.append("file", event.target.files[0]);