Fix(订单):评价上传文件回调报错导致无法预览图片
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user