getLocation:fail 频繁调用会增加电量损耗
发布于 4 年前 作者 weisun 445 次浏览 来自 官方Issues

let data = await wx.getLocation(

type: “gcj02”

)

3 回复

你好,现在重试看看

根据报错提示替换使用onLocationChange就可以了

wx.onLocationChange

回到顶部