From c31a2521d5bd9fa21b294e825f64b0c1d4fbeec3 Mon Sep 17 00:00:00 2001 From: zhaolu <1977573921@qq.com> Date: Thu, 21 Aug 2025 16:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=8D=E7=BD=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=BC=80=E5=85=B3=E7=8A=B6=E6=80=81=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaolu <1977573921@qq.com> --- .../src/main/ets/com/ohos/model/LocationService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/features/locationcomponent/src/main/ets/com/ohos/model/LocationService.ts b/features/locationcomponent/src/main/ets/com/ohos/model/LocationService.ts index b88e8a05..36de38e0 100644 --- a/features/locationcomponent/src/main/ets/com/ohos/model/LocationService.ts +++ b/features/locationcomponent/src/main/ets/com/ohos/model/LocationService.ts @@ -51,9 +51,7 @@ export class LocationService { Log.showInfo(TAG, 'stopService'); this.mIsStart = false; try { - geolocation.off('locationEnabledChange', (state: boolean) => { - Log.showInfo(TAG, `stopService locationChange, state: ${JSON.stringify(state)}`) - }); + geolocation.off('locationEnabledChange'); } catch { Log.showError(TAG, 'geolocation.off try-catch error'); } -- Gitee