diff --git a/src/app/shared/components/amap/amap.service.ts b/src/app/shared/components/amap/amap.service.ts index 23c3231d..d05e58fe 100644 --- a/src/app/shared/components/amap/amap.service.ts +++ b/src/app/shared/components/amap/amap.service.ts @@ -57,11 +57,10 @@ export class AmapService { zoomToAccuracy: true //定位成功后是否自动调整地图视野到定位点 }); driving.getCurrentPosition((status: string, result: any) => { - console.log(status,result); - if (status == 'complete') { this.currentSub.next(result); } else { + console.log('定位获取失败'); } }); });