追加调试工具功能

This commit is contained in:
aixianling
2022-09-29 14:57:46 +08:00
parent 7986328736
commit e5d98bbc80
2 changed files with 14 additions and 5 deletions

View File

@@ -6,6 +6,9 @@
<script>
export default {
name: "AiConsole",
props: {
show: Boolean
},
data() {
return {
count: {},
@@ -24,10 +27,16 @@ export default {
}
},
created() {
this.count = 0
window.addEventListener('touchstart', evt => {
if (evt.touches.length == 3) this.$u.debounce(this.handleConsole, 500)
})
if (this.show) {
this.count = 5
this.handleConsole()
} else {
this.count = 0
window.addEventListener('touchstart', evt => {
if (evt.touches.length == 3) this.$u.debounce(this.handleConsole, 500)
})
}
}
}
</script>