diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index daf2026d..6177e18e 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -147,6 +147,8 @@ const Index = () => { let key = 'ODQBZ-3FZAU-6VIVL-2XXNM-F7CP7-WVFCY' // 写自己申请的key Taro.getLocation({ type: 'wgs84', + isHighAccuracy: true, + highAccuracyExpireTime: 1000 * 6, success: function (res) { setLongitude(res.longitude) setLatitude(res.latitude)