mirror of https://github.com/ElemeFE/element
fix input value is null before upload submit actually
parent
04a611353b
commit
0c121434e0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue