未验证 提交 00c446ef 编写于 作者: 前端爱码士 提交者: GitHub

fix: 修复导入相同excel文件不发生change事件 (#2356)

上级 5539190c
......@@ -142,9 +142,14 @@
* @description: 触发选择文件管理器
*/
function handleInputClick(e: Event) {
const files = e && (e.target as HTMLInputElement).files;
const target = e && (e.target as HTMLInputElement);
const files = target?.files;
const rawFile = files && files[0]; // only setting files[0]
target.value = '';
if (!rawFile) return;
if (props.isReturnFile) {
emit('success', rawFile);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册