vconsole迁移至cdn

This commit is contained in:
aixianling
2022-08-08 16:20:52 +08:00
parent 0a9e1ce2da
commit 777723c7c2

View File

@@ -65,7 +65,6 @@
<script> <script>
import {mapActions, mapState} from "vuex"; import {mapActions, mapState} from "vuex";
import VConsole from 'vconsole'
export default { export default {
name: 'my', name: 'my',
@@ -106,7 +105,7 @@ export default {
}, },
handleVConosle() { handleVConosle() {
if (this.vcBtn.count == 5) { if (this.vcBtn.count == 5) {
new VConsole() this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => new VConsole())
} else { } else {
this.vcBtn.count++ this.vcBtn.count++
} }