From c74b5bd22bea72be3d78bafc08bab58ed5e56491 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 9 May 2024 16:04:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=A0=E9=99=A4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UploadFile/src/UploadFile.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 94b8dee..32149a4 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -145,7 +145,11 @@ const excelUploadError: UploadProps['onError'] = (): void => { } // 删除上传文件 const handleRemove = (file) => { + debugger + console.log(fileList.value) + console.log(file.name) const findex = fileList.value.map((f) => f.name).indexOf(file.name) + console.log(findex) if (findex > -1) { fileList.value.splice(findex, 1) emit('update:modelValue', listToString(fileList.value))