Commit 0c121434 authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

fix input value is null before upload submit actually

parent 04a61135
......@@ -62,7 +62,6 @@ export default {
if (!files) return;
this.uploadFiles(files);
this.$refs.input.value = null;
},
uploadFiles(files) {
let postFiles = Array.prototype.slice.call(files);
......@@ -76,6 +75,8 @@ export default {
});
},
upload(rawFile, file) {
this.$refs.input.value = null;
if (!this.beforeUpload) {
return this.post(rawFile);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment