From 410633e04f781803f54f8a9e177edff4b7849add Mon Sep 17 00:00:00 2001 From: fangxiang Date: Fri, 15 Apr 2022 15:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/App.vue b/src/App.vue index 70223e4..0c3a131 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ @@ -37,9 +38,20 @@ export default defineComponent({ }; window.document.body.onclick = (evt: any) => { + if ((window).touchPriority) { + return; + } EventBus.getInstance().emit(EventNamesDefine.DocumentBodyClick, evt); }; + if ("ontouchstart" in document.documentElement === true) { + window.document.body.ontouchstart = (evt: any) => { + if ((window).touchPriority) { + EventBus.getInstance().emit(EventNamesDefine.DocumentBodyClick, evt); + } + }; + } + document.body.classList.add("overflow-hidden"); (window as any).controlLogout = () => {