wwf
16 小时以前 38712ae83223cb244020e255fc37e1ce35775c45
src/views/h5/signup/BaiduMap.vue
@@ -56,6 +56,15 @@
      this.map = null;
    }
  },
  watch: {
    center: {
      handler: function(val) {
        const newPoint = new BMapGL.Point(val.lng, val.lat);
        this.map.map.setCenter(newPoint)
      },
      deep: true
    }
  },
  methods: {
    loadMap() {
      loadBaiduMapScript()