From 4c7c5b721be0c61b7de5d19f0b0007b5aeb825c5 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Mon, 16 Oct 2023 10:21:25 +0800
Subject: [PATCH] 无人机控制展示功能样式修改
---
src/store/common.ts | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/store/common.ts b/src/store/common.ts
index 5dc1429..566b858 100644
--- a/src/store/common.ts
+++ b/src/store/common.ts
@@ -1,4 +1,5 @@
import { MutationTree } from 'vuex'
+import { ControlSource } from '/@/types/device'
const state = () => ({
projectId: null as string | null,
@@ -10,6 +11,7 @@
mode: 0, // 0为标准地图, 1为卫星地图
roadLine: true,
},
+ droneControlSource: ControlSource.A
})
export type RootStateType = ReturnType<typeof state>
const mutations: MutationTree<RootStateType> = {
@@ -34,6 +36,10 @@
// 设置地图路网
SET_MAP_SETTING_ROAD_LINE (state, roadLine: boolean) {
state.mapSetting.roadLine = roadLine
+ },
+ // 设置飞行控制
+ SET_DRONE_CONTROL_SOURCE (state, droneControlSource: ControlSource) {
+ state.droneControlSource = droneControlSource
}
}
export default {
--
Gitblit v1.9.3