上传后删除再次上传提示
File chooser dialog can only be shown with a user activation.
使用
this.$refs.file.click()
修改为
<input type="file" ref="upload" @change="uploadFile" accept=".xlsx, xls" style="display: none"/>
this.$refs.upload.dispatchEvent(new MouseEvent('click'))