From 54849757852f6ab40eb17afbd03d1d839b60a38d Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 13 Nov 2023 17:09:15 +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..c3ebb0c 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: ''
})
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