1.0.5 • Published 11 months ago
bowo-location-sdk v1.0.5
使用说明
- 在需要使用的页面引入,可以直接复制此代码 --- import getLocation from 'bowo-location-sdk'
- 调用 getLocation 即可,可直接复制以下代码
getLocation()
.then(res => {
//res中的格式如下:{ data: {lng: 'xxxx', lat: 'xxxx'}, status: 'success' }
const { lng, lat } = res.data
// 获取到lng, lat后自行处理
})
.catch(err => {
//处理错误逻辑
})