From 31b490916d1d5100f9632dfe70498ca7a8417a81 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 26 May 2022 20:48:44 +0800 Subject: [PATCH] no message --- resources/assets/js/components/Mobile/Back.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/components/Mobile/Back.vue b/resources/assets/js/components/Mobile/Back.vue index b03a44270..898b04737 100644 --- a/resources/assets/js/components/Mobile/Back.vue +++ b/resources/assets/js/components/Mobile/Back.vue @@ -25,15 +25,15 @@ export default { }, mounted() { - window.addEventListener('touchstart', this.touchstart) - window.addEventListener('touchmove', this.touchmove) - window.addEventListener('touchend', this.touchend) + document.addEventListener('touchstart', this.touchstart) + document.addEventListener('touchmove', this.touchmove) + document.addEventListener('touchend', this.touchend) }, beforeDestroy() { - window.removeEventListener('touchstart', this.touchstart) - window.removeEventListener('touchmove', this.touchmove) - window.removeEventListener('touchend', this.touchend) + document.removeEventListener('touchstart', this.touchstart) + document.removeEventListener('touchmove', this.touchmove) + document.removeEventListener('touchend', this.touchend) }, computed: {