Commit e03a1a8bb3df9da62dd7e023cd6c58ba589c480c

Authored by YunaiV
1 parent 78fe38d6

v3.7.0 图片上传 - 多图时无法删除相应图片修复

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 },
... ...