maxiaoxiao 1 жил өмнө
parent
commit
382b680a90

+ 1 - 1
src/views/complianceAnalysis/components/lsjl.vue

@@ -215,7 +215,7 @@ export default {
     },
     },
     zoomItem(item) {
     zoomItem(item) {
       this.now = item.bsm;
       this.now = item.bsm;
-      this.addPolygon(parse(item.geom));
+      item.geom && this.addPolygon(parse(item.geom));
     },
     },
     // 加载GeoJSON数据
     // 加载GeoJSON数据
     addPolygon(geojson) {
     addPolygon(geojson) {