From 3c7cf57b37c0f1c341cbeeee6b852949acaee271 Mon Sep 17 00:00:00 2001 From: z30025928 <734222381@qq.com> Date: Wed, 15 Feb 2023 10:31:28 +0800 Subject: [PATCH] fix doc Signed-off-by: z30025928 <734222381@qq.com> --- .../reference/apis/js-apis-geoLocationManager.md | 6 +++--- zh-cn/application-dev/reference/apis/js-apis-geolocation.md | 2 +- .../reference/apis/js-apis-system-location.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md b/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md index 1887a65686..9de4f4b835 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md @@ -88,7 +88,7 @@ import geoLocationManager from '@ohos.geoLocationManager'; | countryCode | string | 是 | 否 | 表示国家码信息。 | | countryName | string| 是 | 否 | 表示国家信息。 | | administrativeArea | string | 是 | 否 | 表示省份区域信息。 | -| subAdministrativeArea | string | 是 | 否 | 表示表示子区域信息。 | +| subAdministrativeArea | string | 是 | 否 | 表示子区域信息。 | | locality | string | 是 | 否 | 表示城市信息。 | | subLocality | string | 是 | 否 | 表示子城市信息。 | | roadName | string | 是 | 否 |表示路名信息。 | @@ -782,12 +782,12 @@ on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): vo { bundleName: "com.example.myapplication", abilityName: "EntryAbility", - action: "action1", + action: "action1" } ], operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG], + wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index ebe0fa3d29..bed48f3ffc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -411,7 +411,7 @@ on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; { bundleName: "com.example.myapplication", abilityName: "EntryAbility", - action: "action1", + action: "action1" } ], operationType: wantAgent.OperationType.START_ABILITY, diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-location.md b/zh-cn/application-dev/reference/apis/js-apis-system-location.md index b2a31156f4..433fb41216 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-location.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-location.md @@ -71,9 +71,9 @@ export default { }, fail: function(data, code) { console.log('fail to get location. code:' + code + ', data:' + data); - }, + } }); - }, + } } ``` @@ -193,7 +193,7 @@ unsubscribe(): void export default { unsubscribe() { geolocation.unsubscribe(); - }, + } } ``` -- GitLab