Kbone使用wx-map组件 修改经纬度报错?
let that = this;
window.addEventListener("wxload", async (query) => {
console.log("serviceQuery wxload", query);
wx.getLocation({
type: "wgs84", // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标
success: function (res) {
that.latitude = res.latitude;
that.longitude = res.longitude;
},
});
Cannot read property ‘_wrapper’ of undefined