mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 18:26:09 +01:00
🔊
This commit is contained in:
parent
e34d1a1401
commit
221d3c1d7f
2 changed files with 2 additions and 0 deletions
|
|
@ -256,6 +256,7 @@ export class Breadcrumb {
|
|||
uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & {
|
||||
target: HTMLInputElement
|
||||
}) => {
|
||||
console.log(event.target.files.length)
|
||||
if (event.target.files.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@ export const uploadFiles = (protyle: IProtyle, files: FileList | DataTransferIte
|
|||
|
||||
protyle.upload.isUploading = true;
|
||||
xhr.onreadystatechange = () => {
|
||||
console.log(xhr.readyState)
|
||||
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||
protyle.upload.isUploading = false;
|
||||
if (!document.body.contains(protyle.element)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue