fix input value is null before upload submit actually

pull/3526/merge
baiyaaaaa 2017-05-30 23:49:30 +08:00 committed by 杨奕
parent 04a611353b
commit 0c121434e0
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}