From e8b31e43515b48566663684a249682051a348bf8 Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Sat, 9 Oct 2021 15:28:40 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FrontCode2/sunshine_levy/src/App.vue b/FrontCode2/sunshine_levy/src/App.vue index 5c4affd..05d1add 100644 --- a/FrontCode2/sunshine_levy/src/App.vue +++ b/FrontCode2/sunshine_levy/src/App.vue @@ -23,7 +23,10 @@ export default { }; document.body.ontouchend = function(e) { this.endValue = e.changedTouches[0].pageY; - if (this.endValue - this.startValue > 0) { + if ( + this.endValue - this.startValue > 0 && + e.changedTouches[0].pageY === e.changedTouches[0].clientY + ) { window.location.reload(); } };