From 7343fa5857e8f0cfbfd140f46eb61422d2f14ff1 Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Fri, 22 Mar 2024 14:12:44 +0800
Subject: [PATCH] Update package.json

---
 src/store/index.ts |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/store/index.ts b/src/store/index.ts
index 0eb84ff..53dbca3 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -99,7 +99,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 +211,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

--
Gitblit v1.9.3