This commit is contained in:
xiongchengqiang 2020-12-18 15:22:51 +08:00
parent 1b28a5fb40
commit 9205658189

View File

@ -4,6 +4,7 @@
请移步PC端操作 请移步PC端操作
</div> </div>
<router-view v-else class="main"/> <router-view v-else class="main"/>
<div @dblclick="handleShowVcnsole" class="baaa" style="width:20px;height:20px;"></div>
</div> </div>
</template> </template>
@ -35,7 +36,7 @@ export default {
computed: { computed: {
}, },
async created () { async created () {
if (dd.other) { if (!dd.other) {
var vConsole = new VConsole({ var vConsole = new VConsole({
vConsole_switch_x: 0, vConsole_switch_x: 0,
vConsole_switch_y: 0 vConsole_switch_y: 0
@ -48,6 +49,14 @@ export default {
this.dd = dd this.dd = dd
}, },
methods: { methods: {
handleShowVcnsole () {
var vConsole = new VConsole({
vConsole_switch_x: 0,
vConsole_switch_y: 0
})
localStorage.setItem('vConsole_switch_y', 0)
localStorage.setItem('vConsole_switch_x', 1000)
}
} }
} }
</script> </script>
@ -61,4 +70,10 @@ export default {
height: 200px; height: 200px;
.center(); .center();
} }
.baaa{
position: absolute;
top: 0;
right: 0;
z-index: 0999999999999;
}
</style> </style>