src/views/safetyReview/projectManage/components/mapLocation.vue
@@ -60,8 +60,8 @@ mapLocationVisible: false, zoom: 7, center: { lng: '87.62472586600425', lat: '43.82743324701045' lng: '116.42585576793277', lat: '39.88973394962104' }, keyword:'', location: '' @@ -80,6 +80,7 @@ } const openMapLocation=(longitude,latitude)=>{ if(longitude != ""){ state.longitude = longitude state.latitude = latitude state.zoom = 13 @@ -87,6 +88,15 @@ lng: longitude, lat: latitude } }else { state.zoom = 7 state.center = { lng: '87.61552721758208', lat: '43.839018284106565' } } state.mapLocationVisible = true }