diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 3b9b581..cb4cdfb 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -1,33 +1,50 @@ @@ -221,4 +242,7 @@ function submitUpload() { .ele-upload-list__item-content-action .el-link { margin-right: 10px; } +.doc-icon { + margin: 0 10px; +} diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index b45a704..2f17b7f 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -115,11 +115,10 @@ function handleRemove(file, files) { function handleUploadSuccess(res) { uploadList.value.push({ name: res.data.fileName, url: res.data.url }) if (uploadList.value.length === number.value) { - fileList.value = fileList.value.concat(uploadList.value) + fileList.value = fileList.value.filter((f) => f.url !== undefined).concat(uploadList.value) uploadList.value = [] number.value = 0 emit('update:modelValue', listToString(fileList.value)) - // emit('success', listToString(fileList.value)) proxy.$modal.closeLoading() } }