1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <script setup lang="ts">
| import { onMounted,onUnmounted } from "vue";
| import deviceView from "./components/deviceView.vue";
| onMounted(()=>{
| console.log(window.plus)
| if (window.plus) {
| plus.screen.lockOrientation('landscape'); // 锁定横屏
| }
| })
| onUnmounted(()=>{
| if (window.plus) {
| plus.screen.unlockOrientation(); // 解锁屏幕方向
| }
| })
| </script>
|
| <template>
| <router-view/>
| </template>
|
| <style scoped>
| </style>
|
|