From 1d4602db0b7f299eade71855325aeb6f09db3c8d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 12 May 2022 15:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=BB=91=E5=8A=A8=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/Mobile/Back.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/Mobile/Back.vue b/resources/assets/js/components/Mobile/Back.vue index 4f9d9344d..00d3f54ce 100644 --- a/resources/assets/js/components/Mobile/Back.vue +++ b/resources/assets/js/components/Mobile/Back.vue @@ -65,7 +65,7 @@ export default { }, touchend() { // 判断停止时的位置偏移 - if (this.x > 90) { + if (this.x > 90 && this.show) { this.onBack(); } this.x = 0 @@ -88,9 +88,7 @@ export default { this.cacheDrawerOverlay[this.cacheDrawerOverlay.length - 1].close(); return; } - if (this.show) { - this.goBack(); - } + this.goBack(); } }, };