zhouwenxuan
2024-03-15 68cd58de3a45d79ea241fa4d79e550217072e494
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,13 +80,23 @@
}
const openMapLocation=(longitude,latitude)=>{
  state.longitude = longitude
  state.latitude = latitude
  state.zoom = 13
  state.center = {
    lng: longitude,
    lat: latitude
  if(longitude != ""){
    state.longitude = longitude
    state.latitude = latitude
    state.zoom = 13
    state.center = {
      lng: longitude,
      lat: latitude
    }
  }else {
    state.zoom = 7
    state.center = {
      lng: '87.61552721758208',
      lat: '43.839018284106565'
    }
  }
  state.mapLocationVisible = true
}