[缺陷修复](v2.5): 修复图床弹窗中删除上传的图片报错的问题

This commit is contained in:
ZhengJie
2020-06-17 10:23:27 +08:00
parent cd01e3a21b
commit 92434003bf

View File

@@ -143,7 +143,7 @@ export default {
handleBeforeRemove(file, fileList) { handleBeforeRemove(file, fileList) {
for (let i = 0; i < this.pictures.length; i++) { for (let i = 0; i < this.pictures.length; i++) {
if (this.pictures[i].uid === file.uid) { if (this.pictures[i].uid === file.uid) {
crudPic.del(this.pictures[i].id).then(res => {}) crudPic.del(Array.of(this.pictures[i].id)).then(res => {})
return true return true
} }
} }