追加调试工具功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="AppOpenChat">
|
<section class="AppOpenChat">
|
||||||
<AiLoading tips="正在处理..."/>
|
<AiLoading tips="正在处理..."/>
|
||||||
<AiConsole/>
|
<AiConsole show/>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user