From e809a71cfa0732edffcf52479e91b94210c40cdd Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 18 二月 2025 12:54:35 +0800
Subject: [PATCH] 34
---
src/App.vue | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 026a1fa..7fe1997 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,17 +1,7 @@
<script setup lang="ts">
-import { onMounted,onUnmounted } from "vue";
+import { ref } 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>
--
Gitblit v1.8.0