diff --git a/src/views/xuncha/components/inspection.vue b/src/views/xuncha/components/inspection.vue index dad6c8b..b4443bc 100644 --- a/src/views/xuncha/components/inspection.vue +++ b/src/views/xuncha/components/inspection.vue @@ -183,7 +183,7 @@ console.log('AllData.PostionValue.lonLat--', AllData.PostionValue.lonLat); AllData.currentPath.push(AllData.PostionValue.lonLat.split(',').map(Number)); console.log('AllData.currentPath--', AllData.currentPath); - if (!newfiberMap.map) return; + if (!newfiberMap || !newfiberMap.map) return; //渲染当前位置 let currentPositionGeojson = { type: 'FeatureCollection',