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

!9870 xts代码getUIContent报错问题解决

Merge pull request !9870 from huangdong/stage0825
......@@ -51,8 +51,11 @@ export default class TestAbility extends Ability {
return;
}
windowClass = data;
globalThis.uiContent = windowClass.getUIContext();
try{
globalThis.uiContent = windowClass.getUIContext();
} catch(err){
console.info("windowClass getUIContext is error" + JSON.stringify(err))
}
console.info('Succeeded in obtaining the main window. Data: ' + JSON.stringify(data));
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册