上传文件只能点击一次,再点无效 bug 解决
<input
ref="imageFileUpload"
type="file"
hidden
@change="onImageFileChanged"
accept="image/png, image/gif, image/jpeg, image/bmp, image/x-icon"
style="display: none"
/>
const imageFileUpload = ref<any>();
// 上传完成后记得清除一下 value
imageFileUpload.value.value = '';