Commit e03a1a8bb3df9da62dd7e023cd6c58ba589c480c
1 parent
78fe38d6
v3.7.0 图片上传 - 多图时无法删除相应图片修复
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-ui-admin/src/components/ImageUpload/index.vue
| ... | ... | @@ -116,7 +116,7 @@ export default { |
| 116 | 116 | methods: { |
| 117 | 117 | // 删除图片 |
| 118 | 118 | handleRemove(file, fileList) { |
| 119 | - const findex = this.fileList.indexOf(file.name); | |
| 119 | + const findex = this.fileList.map(f => f.name).indexOf(file.name); | |
| 120 | 120 | this.fileList.splice(findex, 1); |
| 121 | 121 | this.$emit("input", this.listToString(this.fileList)); |
| 122 | 122 | }, | ... | ... |