单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
34
chenyc
2025-01-24 bf131bd7028003b01ff079cd30c432059cb6a841
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>