未验证 提交 cf7e335f 编写于 作者: O openharmony_ci 提交者: Gitee

!8758 修复Stage模型ability生命周期中loadcontent示例错误( data为undefined)

Merge pull request !8758 from 张亚菲/zyf
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册