From bde1084207bc63f627819b0bda8a54990de49206 Mon Sep 17 00:00:00 2001 From: chenyuyan <chenyuyan3@huawei.com> Date: Tue, 15 Aug 2023 17:19:27 +0800 Subject: [PATCH] =?UTF-8?q?FA=E6=A8=A1=E5=9E=8B=E5=92=8Cstage=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E8=B7=B3=E8=BD=AC=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9=EF=BC=8CabilityName?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=96=B0=E5=A2=9E=EF=BC=8C=E6=8C=91=E5=8D=95?= =?UTF-8?q?3.2-Release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyuyan <chenyuyan3@huawei.com> Change-Id: I6c8032969dfe145a9d76940f62523bb611da2079 --- .../application-models/start-pageability-from-stage.md | 5 ++++- .../application-models/start-uiability-from-fa.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/application-models/start-pageability-from-stage.md b/zh-cn/application-dev/application-models/start-pageability-from-stage.md index 39f6294c22..379aae7d5c 100644 --- a/zh-cn/application-dev/application-models/start-pageability-from-stage.md +++ b/zh-cn/application-dev/application-models/start-pageability-from-stage.md @@ -8,6 +8,9 @@ UIAbilityå¯åŠ¨PageAbilityå’ŒUIAbilityå¯åŠ¨UIAbilityçš„æ–¹å¼å®Œå…¨ç›¸åŒã€‚ +> **说明:** +> 需注æ„FA模型ä¸abilityNameç”±bundleName + AbilityName组æˆï¼Œå…·ä½“è§ç¤ºä¾‹ã€‚ + ```ts import UIAbility from '@ohos.app.ability.UIAbility'; @@ -25,7 +28,7 @@ export default class EntryAbility extends UIAbility { }); let want = { bundleName: "com.ohos.fa", - abilityName: "EntryAbility", + abilityName: "com.ohos.fa.EntryAbility", }; this.context.startAbility(want).then(() => { console.info('Start Ability successfully.'); diff --git a/zh-cn/application-dev/application-models/start-uiability-from-fa.md b/zh-cn/application-dev/application-models/start-uiability-from-fa.md index c0c70139d6..a904c90557 100644 --- a/zh-cn/application-dev/application-models/start-uiability-from-fa.md +++ b/zh-cn/application-dev/application-models/start-uiability-from-fa.md @@ -14,7 +14,7 @@ import featureAbility from '@ohos.ability.featureAbility'; let parameter = { "want": { bundleName: "com.ohos.stage", - abilityName: "com.ohos.stage.EntryAbility" + abilityName: "EntryAbility" } }; featureAbility.startAbility(parameter).then((code) => { -- GitLab