From 28bf18ec90ae478a81bb0741cdc6d6a2c8ee045a Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 11 May 2022 18:22:33 +0800
Subject: [PATCH] 农场地图修改,首页页面修改
---
src/views/farm/getMapDataInThere.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/farm/getMapDataInThere.vue b/src/views/farm/getMapDataInThere.vue
index d1a0abf..07ee8f3 100644
--- a/src/views/farm/getMapDataInThere.vue
+++ b/src/views/farm/getMapDataInThere.vue
@@ -20,14 +20,14 @@
<script>
import { mapGetters } from "vuex";
-import MapInThere from "@/components/map/mainInThere.vue";
+import MapInThere from "@/components/map/mainFarm.vue";
export default {
name: "getMapData",
components: {
MapInThere,
},
computed: {
- ...mapGetters(["rotesData", "pointData", "polygons"]),
+ ...mapGetters(["rotesData", "pointData", "polygonsFarm"]),
},
watch: {
ourDatas: {
@@ -39,7 +39,7 @@
deep: true,
},
polygons() {
- if (this.polygons.length > 0) {
+ if (this.polygonsFarm.length > 0) {
this.isCheck = false;
}
},
@@ -68,7 +68,7 @@
},
methods: {
draw(usePolygons) {
- this.$store.commit("setpolygon", usePolygons); //用vuex传最终数据
+ this.$store.commit("setpolygonsFarm", usePolygons); //用vuex传最终数据
this.doThat(usePolygons)
},
doThat(val) {
--
Gitblit v1.9.3