diff --git a/zh-cn/application-dev/device/location-guidelines.md b/zh-cn/application-dev/device/location-guidelines.md index e58848c2219958b50a58d156f52ac6ae85a465b8..09754cbab4fd89372169cd2e33f6f9ab2442f4e0 100644 --- a/zh-cn/application-dev/device/location-guidelines.md +++ b/zh-cn/application-dev/device/location-guidelines.md @@ -338,7 +338,7 @@ ```ts import geoLocationManager from '@ohos.geoLocationManager'; - import wantAgent from '@ohos.app.ability.wantAgent'; + import wantAgent, {WantAgent as _wantAgent} from '@ohos.app.ability.wantAgent'; import BusinessError from "@ohos.base"; ``` @@ -347,7 +347,7 @@ 场景一:创建拉起Ability的WantAgentInfo信息。 ```ts - let wantAgentObj:wantAgent.WantAgentInfo|null = null; // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 + let wantAgentObj:_wantAgent|null = null; // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo:wantAgent.WantAgentInfo = { @@ -371,7 +371,7 @@ 场景二:创建发布[公共事件](../application-models/common-event-overview.md)的WantAgentInfo信息。 ```ts - let wantAgentObj:wantAgent.WantAgentInfo|null = null; // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 + let wantAgentObj:_wantAgent|null = null; // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo:wantAgent.WantAgentInfo = {