input change事件无法上传相同文件
原生:
html:
<input id="file" type="file" accept="" onchange="upload()" />
js:
document.getElementById('file').value = null;
VUE:
html:
<input ref="input" @change="referenceUpload" type="file" accept="" />
js:
this.$refs.input.value = null;