From c7d469efc2bc11d2c54d2aafef90d16e27088eb8 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 02 Aug 2022 11:43:42 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhny_web

---
 src/views/land/getMapDataInThere.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/views/land/getMapDataInThere.vue b/src/views/land/getMapDataInThere.vue
index cb6886e..781985e 100644
--- a/src/views/land/getMapDataInThere.vue
+++ b/src/views/land/getMapDataInThere.vue
@@ -18,6 +18,12 @@
 import MapInThere from "@/components/map/mainInThere.vue"
 export default {
     name: "getMapData",
+    props: {
+      currentPolygons: {
+        type: Array,
+        default: []
+      }
+    },
     components: {
         MapInThere,
     },
@@ -38,6 +44,16 @@
                 this.isCheck = false
             }
         },
+      currentPolygons: {
+          immediate: true,
+        handler (newData, oldData) {
+            console.log(newData, 5656)
+            if (newData.length > 0) {
+
+              this.draw(newData)
+            }
+        },
+      }
     },
     data () {
         return {
@@ -64,6 +80,8 @@
     methods: {
         draw (usePolygons) {
 
+          console.log(usePolygons, 456)
+
             let arr = []
 
             usePolygons.forEach(item => {

--
Gitblit v1.9.3