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))