追加调试工具功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user