This commit is contained in:
yanran200730
2022-06-16 14:53:03 +08:00
parent 0d8942c198
commit f87bc45d4e

View File

@@ -198,14 +198,13 @@
}, },
mounted () { mounted () {
this.$nextTick(() => { // this.$nextTick(() => {
document.body.addEventListener('touchmove', this.bindEvent, { passive: false }) // document.body.addEventListener('touchmove', this.bindEvent, { passive: false })
}) // })
}, },
onUnload () { onUnload () {
uni.$off('cropper') uni.$off('cropper')
document.body.removeEventListener('touchmove', this.bindEvent)
}, },
methods: { methods: {