Commit 77a21d09 authored by 严俊东's avatar 严俊东 Committed by Gitee

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

parent 170cfb35
......@@ -116,7 +116,7 @@ export default {
methods: {
// 删除图片
handleRemove(file, fileList) {
const findex = this.fileList.indexOf(file.name);
const findex = this.fileList.map(f => f.name).indexOf(file.name);
this.fileList.splice(findex, 1);
this.$emit("input", this.listToString(this.fileList));
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment