From 0d04c984e5719a160d3c0e8433c13f78de5cefe2 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 19 Jul 2022 17:27:13 +0800
Subject: [PATCH] 1
---
src/store/modules/map.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index 4031a66..23eaa05 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -11,6 +11,9 @@
state: {
rotesData: false,
pointData: false,
+ mapServiceValue: [],
+ deleteIndex: -1,
+ notSet: false,
},
// actions: {
// FlowRoutes({commit}) {
@@ -25,6 +28,19 @@
// },
// },
mutations: {
+ changeNotSet(state, data) {
+ state.notSet = data;
+ },
+ setMapServiceValue(state, data) {
+ state.mapServiceValue.push(data);
+ },
+ deleteMapServiceValue(state, index) {
+ state.deleteIndex = index;
+ state.mapServiceValue.splice(index, 1);
+ },
+ clearMapServiceValue(state, data) {
+ state.mapServiceValue = [];
+ },
setRotesData(state, data) {
state.rotesData = data;
},
--
Gitblit v1.9.3