From f27ca082eb0a839449dd50c49007b58e5ed6946f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 19 Jun 2025 19:08:01 +0800
Subject: [PATCH] feat: 服务名修改
---
src/store/index.ts | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/store/index.ts b/src/store/index.ts
index 0eb84ff..04f76a7 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -9,6 +9,7 @@
import createPersistedState from 'vuex-persistedstate' // 导入库
import map from './map'
import common from './common'
+import user from './user'
const initStateFunc = () => ({
Layers: [
@@ -99,7 +100,8 @@
clientId: '', // mqtt 连接 唯一客户端id,
waylineTool: {
isShow: false as boolean,
- wayline: {} as any,
+ selectedPoint: undefined as number | undefined,
+ selectedAction: undefined as any | undefined,
kmzPath: '' as string
}
})
@@ -210,9 +212,10 @@
state.clientId = clientId
},
// 设置wayline中的信息
- SET_WAYLINE_INFO (state, { isShow, wayline }) {
- state.waylineTool.isShow = isShow
- state.waylineTool.wayline = wayline
+ SET_WAYLINE_INFO (state, { isShow, selectedPoint, selectedAction }) {
+ isShow !== undefined && (state.waylineTool.isShow = isShow)
+ state.waylineTool.selectedPoint = selectedPoint
+ selectedAction !== undefined && (state.waylineTool.selectedAction = selectedAction)
},
SET_WAYLINE_KMZPATH (state, kmzPath) {
state.waylineTool.kmzPath = kmzPath
@@ -265,12 +268,13 @@
actions,
modules: {
map,
- common
+ common,
+ user
},
plugins: [createPersistedState({
storage: window.sessionStorage,
key: 'drone-client',
- paths: ['map', 'common'],
+ paths: ['map', 'common', 'user'],
})]
}
--
Gitblit v1.9.3