This commit is contained in:
2022-11-15 14:45:07 +08:00
parent f46e63adc9
commit e7e7aeda2d
13 changed files with 150 additions and 127 deletions

View File

@@ -2307,6 +2307,7 @@ const _sfc_main = defineComponent({
},
emits: [
"choose",
"chooseAfter",
"before",
"done",
"error",
@@ -2453,9 +2454,8 @@ const _sfc_main = defineComponent({
emit("error", Object.assign({ currentTimeStamp, msg: errorMsg }));
};
const localUpload = (option, callback) => {
let xhr, url;
xhr = new XMLHttpRequest();
url = option.url;
let xhr = new XMLHttpRequest();
let url = option.url;
let formData = option.formData;
const cb = callback;
xhr.onreadystatechange = function() {