From a53ece5036c1fa61a63fe5f9e0cd3519210ab928 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 07 Aug 2026 09:44:27 +0800
Subject: [PATCH] feat:兼容分辨率低不出现滚动条
---
applications/drone-command/src/store/modules/common.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/applications/drone-command/src/store/modules/common.js b/applications/drone-command/src/store/modules/common.js
index ce4a88f..c9737e6 100644
--- a/applications/drone-command/src/store/modules/common.js
+++ b/applications/drone-command/src/store/modules/common.js
@@ -23,6 +23,15 @@
},
safeHeight: 0, // 获取选择航线高度
positionsArr: [], // 获取选择航线点数据
+
+
+ // 地图设置
+ mapSetting: {
+ mode: 17, // 0为标准地图, 1为卫星地图
+ roadLine: true,
+ visual: '3D',
+ isDark: false,
+ },
},
mutations: {
setSafeHeight (state, data) {
@@ -104,6 +113,10 @@
type: 'session',
});
},
+
+ SET_MAP_MODE: (state, mode) => {
+ state.mapSetting.mode = mode
+ }
},
};
export default common;
--
Gitblit v1.9.3