正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -117,8 +117,10 @@ export default { | @@ -117,8 +117,10 @@ export default { | ||
| 117 | // 删除图片 | 117 | // 删除图片 |
| 118 | handleRemove(file, fileList) { | 118 | handleRemove(file, fileList) { |
| 119 | const findex = this.fileList.map(f => f.name).indexOf(file.name); | 119 | const findex = this.fileList.map(f => f.name).indexOf(file.name); |
| 120 | + if(findex > -1) { | ||
| 120 | this.fileList.splice(findex, 1); | 121 | this.fileList.splice(findex, 1); |
| 121 | this.$emit("input", this.listToString(this.fileList)); | 122 | this.$emit("input", this.listToString(this.fileList)); |
| 123 | + } | ||
| 122 | }, | 124 | }, |
| 123 | // 上传成功回调 | 125 | // 上传成功回调 |
| 124 | handleUploadSuccess(res) { | 126 | handleUploadSuccess(res) { |
-
请 注册 或 登录 后发表评论