Browse Source

数据中心

彭宇 3 years ago
parent
commit
9aa7470c78
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/forest.vue

+ 5 - 1
src/views/forest.vue

@@ -1529,7 +1529,11 @@
               if(this.cameraList.length>500){
                 markersMap.isAggregation = true
               }
-              markersMap.parameter=this.cameraList[i].channelCode.split(",");
+              if(this.cameraList[i].channelCode!=null){
+                markersMap.parameter=this.cameraList[i].channelCode.split(",");
+              }else{
+                markersMap.parameter=[];
+              }
               markersMap.lng=this.cameraList[i].longitude;
               markersMap.lat=this.cameraList[i].latitude;
               markersMap.bindPopupHtml = '<div class="map-tip">' +