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

!5299 fix ability foreground failed

Merge pull request !5299 from laoyitong/0829
......@@ -38,7 +38,9 @@ export default class MainAbility2 extends Ability {
windowStage.setUIContent(this.context, "pages/index", null)
windowStage.on('windowStageEvent', (data)=>{
if(data == 2){
commonEvent.publish("ACTS_DoAbility_Event", PublishCallBackOne);
setTimeout(()=>{
commonEvent.publish("ACTS_DoAbility_Event", PublishCallBackOne);
}, 2000)
}
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册