调试按钮进入组件库

This commit is contained in:
aixianling
2022-09-02 15:43:23 +08:00
parent 0e1533ffb0
commit 4fa7707e17
2 changed files with 44 additions and 20 deletions

View File

@@ -0,0 +1,43 @@
<template>
<section class="AiConsole">
<div class="vconsoleBtn" @click="$u.debounce(handleVConosle,500)"/>
</section>
</template>
<script>
export default {
name: "AiConsole",
data() {
return {
count: {},
}
},
methods: {
handleVConosle() {
if (this.count == 5) {
this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => {
new VConsole()
this.count++
})
} else {
this.count++
}
}
},
created() {
this.count = 0
}
}
</script>
<style lang="scss" scoped>
.AiConsole {
.vconsoleBtn {
position: fixed;
top: 0;
width: 60px;
height: 60px;
z-index: 202203181519;
}
}
</style>