提交者
Gitee
!259 图片上传 - 多图时无法删除相应图片修复
Merge pull request !259 from 严俊东/N/A
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -116,7 +116,7 @@ export default { | @@ -116,7 +116,7 @@ export default { | ||
| 116 | methods: { | 116 | methods: { |
| 117 | // 删除图片 | 117 | // 删除图片 |
| 118 | handleRemove(file, fileList) { | 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 | this.fileList.splice(findex, 1); | 120 | this.fileList.splice(findex, 1); |
| 121 | this.$emit("input", this.listToString(this.fileList)); | 121 | this.$emit("input", this.listToString(this.fileList)); |
| 122 | }, | 122 | }, |
-
请 注册 或 登录 后发表评论