From 25d8e036c936125847820d038db8105499c46da4 Mon Sep 17 00:00:00 2001 From: "zhangyafei.echo" Date: Fri, 26 Aug 2022 16:47:22 +0800 Subject: [PATCH] IssueNo:#I5O9P6 Description:Fix a bug in the loadContent sample code. Sig:SIG_ApplicationFramework Feature or BugFix: BugFix` Binary Source: No Signed-off-by: zhangyafei.echo Change-Id: I042f0c535d536eed657458174d4513a53347438c --- zh-cn/application-dev/ability/stage-ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/ability/stage-ability.md b/zh-cn/application-dev/ability/stage-ability.md index c57d70f735..9e230dda7a 100644 --- a/zh-cn/application-dev/ability/stage-ability.md +++ b/zh-cn/application-dev/ability/stage-ability.md @@ -87,7 +87,7 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference onWindowStageCreate(windowStage) { console.log("MainAbility onWindowStageCreate") - windowStage.loadContent("pages/index").then((data) => { + windowStage.loadContent("pages/index").then(() => { console.log("MainAbility load content succeed") }).catch((error) => { console.error("MainAbility load content failed with error: " + JSON.stringify(error)) -- GitLab