@idmwx/idmui-gl4 2.3.9 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13507,7 +13507,7 @@ const Km = {
13507
13507
  });
13508
13508
  },
13509
13509
  async fetchHistoryData(t) {
13510
- this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), console.log(222, this.followList), this.meteoData = [];
13510
+ this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
13511
13511
  const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel), i = {
13512
13512
  lat: t.lat,
13513
13513
  lng: t.lng,
@@ -13546,6 +13546,8 @@ const Km = {
13546
13546
  return !1;
13547
13547
  },
13548
13548
  handleGetPosition(t) {
13549
+ if (console.log(t), isNaN(t.lat) || isNaN(t.lng))
13550
+ return !1;
13549
13551
  this.form.latDegree = Number(q.lat2pretty(t.lat).degree), this.form.latMinute = Number(q.lat2pretty(t.lat).minute), this.form.latDirection = q.lat2pretty(t.lat).direction, this.form.lngDegree = Number(q.lng2pretty(t.lng).degree), this.form.lngMinute = Number(q.lng2pretty(t.lng).minute), this.form.lngDirection = q.lng2pretty(t.lng).direction;
13550
13552
  },
13551
13553
  handleDrawInfoMarker(t) {