diff --git a/packages/fighting-design/up-load/src/up-load.vue b/packages/fighting-design/up-load/src/up-load.vue index e91ef4171f..577212a75c 100644 --- a/packages/fighting-design/up-load/src/up-load.vue +++ b/packages/fighting-design/up-load/src/up-load.vue @@ -104,7 +104,7 @@ dragIng.value = false /** 获取文件列表 */ - const files: FileList = (evt.dataTransfer as DataTransfer).files + const files = evt.dataTransfer?.files if (files) { updateFiles(filterFiles(files as unknown as File[]))