|
@@ -190,7 +190,7 @@ export default {
|
|
|
if (this.collectImgList[i].fileName == collectImgList[j].fileName) {
|
|
|
let obj = this.collectImgList[j]
|
|
|
obj.fileUrl = collectImgList[j].fileUrl
|
|
|
- this.$set(this.collectImgList, j, obj)
|
|
|
+ this.collectImgList.splice(j, 1, obj)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
if (this.faultImgList[i].fileName == faultImgList[j].fileName) {
|
|
|
let obj = this.faultImgList[j]
|
|
|
obj.fileUrl = faultImgList[j].fileUrl
|
|
|
- this.$set(this.faultImgList, j, obj)
|
|
|
+ this.faultImgList.splice(j, 1, obj)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
.then(res => {
|
|
|
let obj = this.collectImgList[index]
|
|
|
obj.fileUrl = res.data
|
|
|
- this.$set(this.collectImgList, index, obj)
|
|
|
+ this.collectImgList.splice(index, 1, obj)
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
},
|
|
@@ -353,7 +353,7 @@ export default {
|
|
|
.then(res => {
|
|
|
let obj = this.faultImgList[index]
|
|
|
obj.fileUrl = res.data
|
|
|
- this.$set(this.faultImgList, index, obj)
|
|
|
+ this.faultImgList.splice(index, 1, obj)
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
},
|
|
@@ -366,13 +366,13 @@ export default {
|
|
|
delCollectImg(index) {
|
|
|
let obj = this.collectImgList[index]
|
|
|
obj.fileUrl = ''
|
|
|
- this.$set(this.collectImgList, index, obj)
|
|
|
+ this.collectImgList.splice(index, 1, obj)
|
|
|
},
|
|
|
|
|
|
delFaultImg(index) {
|
|
|
let obj = this.faultImgList[index]
|
|
|
obj.fileUrl = ''
|
|
|
- this.$set(this.faultImgList, index, obj)
|
|
|
+ this.faultImgList.splice(index, 1, obj)
|
|
|
},
|
|
|
|
|
|
// 预览图片
|