diff --git a/src/views/DialogTabs/component/streetscape.vue b/src/views/DialogTabs/component/streetscape.vue index 4b5e952..3b8d00f 100644 --- a/src/views/DialogTabs/component/streetscape.vue +++ b/src/views/DialogTabs/component/streetscape.vue @@ -81,7 +81,7 @@ width: 512, }, }); - if (data && data.data) { + if (data && data.data && data.data.status == 200) { data.data.base64 = 'data:image/jpeg;base64,' + data.data.base64; AllData.poiImages.push({ name: element.name, @@ -101,10 +101,11 @@ gcoord.transform(position_Street, gcoord.WGS84, gcoord.BD09); AllData.poiCircle = position_Street.geometry.coordinates; console.log('🚀 ~ showAllStreet ~ AllData.poiCircle:', AllData.poiCircle); - - AllData.panorama.setPosition( - new BMapGL.Point(position_Street.geometry.coordinates[0], position_Street.geometry.coordinates[1]) - ); + setTimeout(() => { + AllData.panorama.setPosition( + new BMapGL.Point(position_Street.geometry.coordinates[0], position_Street.geometry.coordinates[1]) + ); + }, 3000); searchPoiByLonlat(); gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84);