Skip to content

Commit

Permalink
fix(app): 修复chooseLocation调用到了旧getLocation接口的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Jan 21, 2025
1 parent b39d017 commit 72718c8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export function subscribeGetLocation() {
registerServiceMethod(
API_GET_LOCATION,
(args: IGetLocationOptions, resolve) => {
getLocation({
/**
* 如果开发者使用了腾讯定位,则不能直接调用上面的getLocation方法。
* 必须使用uni.getLocation
*/
uni.getLocation({
type: args.type,
altitude: args.altitude,
highAccuracyExpireTime: args.highAccuracyExpireTime,
Expand Down

0 comments on commit 72718c8

Please sign in to comment.