追加调试工具功能

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

@@ -1,7 +1,7 @@
<template> <template>
<section class="AppOpenChat"> <section class="AppOpenChat">
<AiLoading tips="正在处理..."/> <AiLoading tips="正在处理..."/>
<AiConsole/> <AiConsole show/>
</section> </section>
</template> </template>

View File

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