From aecd1c7a3a0642e7011ba648a26b4888f42d99d5 Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Sat, 9 Oct 2021 09:56:26 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/App.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FrontCode2/sunshine_levy/src/App.vue b/FrontCode2/sunshine_levy/src/App.vue index a6f8271..aa3ad00 100644 --- a/FrontCode2/sunshine_levy/src/App.vue +++ b/FrontCode2/sunshine_levy/src/App.vue @@ -24,7 +24,11 @@ export default { }; app.ontouchend = function(e) { this.endValue = e.target.offsetTop; - if (this.endValue - this.startValue > 0) { + if ( + this.endValue - this.startValue > 0 || + app.offsetTop > 0 || + app.clientTop > 0 + ) { window.location.reload(); } };