input事件change无法上传相同文件的问题
html
<input id="file" type="file" accept=".map" onchange="upload()" />
JS
document.getElementById('file').value = null;
vue
<input ref="referenceUpload" @change="referenceUpload" type="file" accept=".map" multiple/>
methods: { referenceUpload(e) { this.$refs.referenceUpload.value = null; }, }