|
@@ -136,10 +136,10 @@ const selectFile = () => {
|
|
input.click();
|
|
input.click();
|
|
input.onchange = function () {
|
|
input.onchange = function () {
|
|
let file = this.files[0];
|
|
let file = this.files[0];
|
|
- console.log(file);
|
|
|
|
if (file) {
|
|
if (file) {
|
|
uploadFileApi(file).then((res) => {
|
|
uploadFileApi(file).then((res) => {
|
|
cameraEmit("uploadFinish", res.data.fileUrl);
|
|
cameraEmit("uploadFinish", res.data.fileUrl);
|
|
|
|
+ input.value = "";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|