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) + }) } }