From e4be7a095f31b76d4f3d60c06eefe774ffd264fc Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 16 Mar 2022 16:20:18 +0800
Subject: [PATCH] +地图添加面 电子围栏
---
src/store/modules/control.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/control.js b/src/store/modules/control.js
index 3cadfc6..a7bb8d4 100644
--- a/src/store/modules/control.js
+++ b/src/store/modules/control.js
@@ -44,7 +44,9 @@
searchIndex: 6, //收缩展示数量
searchIcon: true, //搜索是否收缩
height: window.screen.height //初始高度
- }
+ },
+ //面的集和点
+ polygons: [],
},
actions: {
WHchangeHight({
@@ -246,6 +248,9 @@
}
},
mutations: {
+ setpolygon: (state, data) => {
+ state.polygons = data;
+ },
setWindowSize: (state, data) => {
state.windowWidth = data.innerWidth;
state.windowHeight = data.innerHeight;
--
Gitblit v1.9.3