From c421bcd829b304530faee7a9dd0454b7bad7c3e2 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Fri, 24 Dec 2021 15:28:17 +0800 Subject: [PATCH] edit --- src/app/shared/components/amap/amap.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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('定位获取失败'); } }); });