fix: 修复移动端查看照片卡住的问题(Close #172)
This commit is contained in:
parent
548fddc690
commit
565e056886
@ -153,11 +153,12 @@ export default {
|
||||
this.images.forEach(image => {
|
||||
imageUrls.push(image.source)
|
||||
})
|
||||
const that = this
|
||||
this.vantImagePreview = vant.ImagePreview({
|
||||
images: imageUrls,
|
||||
startPosition: viewIndex,
|
||||
onClose() {
|
||||
this.$store.dispatch('updateMessage', { event: 'updateImageViewerStatus'})
|
||||
that.$store.dispatch('updateMessage', { event: 'updateImageViewerStatus'})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user