From 661674c5cbf9d8c18c9e6ca75ba2baa4e5501d3b Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 7 Sep 2022 09:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiConsole.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/AiConsole.vue b/src/components/AiConsole.vue index dc50ebc0..29311462 100644 --- a/src/components/AiConsole.vue +++ b/src/components/AiConsole.vue @@ -1,6 +1,5 @@ @@ -13,7 +12,7 @@ export default { } }, methods: { - handleVConosle() { + handleConsole() { if (this.count == 5) { this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => { new VConsole() @@ -26,18 +25,14 @@ export default { }, created() { this.count = 0 + window.addEventListener('touchstart', evt => { + if (evt.touches.length == 3) this.$u.debounce(this.handleConsole, 500) + }) } }