From 4568de9639440260d5162f9adf2fb382ff512ab0 Mon Sep 17 00:00:00 2001 From: w2xi <43wangxi@gmail.com> Date: Wed, 19 Jun 2024 21:02:53 +0800 Subject: [PATCH] chore(type): [up-load] slightly adjust type notation --- packages/fighting-design/up-load/src/up-load.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]))