<template>
  <section class="AiConsole">
  </section>
</template>

<script>
export default {
  name: "AiConsole",
  data() {
    return {
      count: {},
    }
  },
  methods: {
    handleConsole() {
      if (this.count == 5) {
        this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => {
          new VConsole()
          this.count++
        })
      } else {
        this.count++
      }
    }
  },
  created() {
    this.count = 0
    window.addEventListener('touchstart', evt => {
      if (evt.touches.length == 3) this.$u.debounce(this.handleConsole, 500)
    })
  }
}
</script>

<style lang="scss" scoped>
.AiConsole {
}
</style>
