Fix(订单):评价上传文件回调报错导致无法预览图片

This commit is contained in:
lifizer
2024-04-24 14:35:22 +08:00
parent c65bb0e312
commit 8b813d1682
2 changed files with 16 additions and 8 deletions
+16 -6
View File
@@ -107,18 +107,28 @@ export default {
default: true
}
},
watch: {
dataList: {
handler(val) {
this.upload_before_list = val
this.upload_cache_list = []
if (val.length > 0) {
val.map(item => {
debugger
item && this.upload_cache_list.push(item.path)
})
}
this.emit()
},
immediate: true
}
},
onReady(res) {
this.$nextTick(() => {
for (let i = 0; i < 10; i++) {
this.videoContext[i] = uni.createVideoContext(`myVideo_${i}`);
}
});
},
created() {
},
mounted() {
},
methods: {
videoPlay(e) {