From 4e375328107ded06aa73f2cd9f31c896915b5f14 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 05 Nov 2025 14:19:52 +0800
Subject: [PATCH] feat: 控制台兼容横屏

---
 src/subPackages/droneConsole/index.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/subPackages/droneConsole/index.vue b/src/subPackages/droneConsole/index.vue
index 434997b..a745229 100644
--- a/src/subPackages/droneConsole/index.vue
+++ b/src/subPackages/droneConsole/index.vue
@@ -85,12 +85,14 @@
 
 onShow(() => {
   // #ifdef APP-PLUS
-  plus.screen.lockOrientation("landscape-primary");
+  plus.navigator.setFullscreen(true); // 加入全屏
+  plus.screen.lockOrientation("landscape-primary");//横屏
   // #endif
 });
 
 onHide(() => {
   // #ifdef APP-PLUS
+  plus.navigator.setFullscreen(false);
   plus.screen.lockOrientation("portrait-primary");
   // #endif
 });

--
Gitblit v1.9.3