追加调试工具功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section class="AppOpenChat">
|
||||
<AiLoading tips="正在处理..."/>
|
||||
<AiConsole/>
|
||||
<AiConsole show/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
<script>
|
||||
export default {
|
||||
name: "AiConsole",
|
||||
props: {
|
||||
show: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
count: {},
|
||||
@@ -24,11 +27,17 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
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