提交 31c83b40 编写于 作者: Z zhangjing

编译报错修改

Signed-off-by: Nzhangjing <zhangjing403@huawei.com>
上级 ffdf8af3
......@@ -16,7 +16,6 @@ export default class MainAbility extends Ability {
// Main window is created, set main page for this ability
console.log("[Demo] MainAbility onWindowStageCreate windowStage="+ windowStage)
globalThis.windowStage = windowStage
globalThis.abilityStorage = this.storage
globalThis.abilityContext = this.context
windowStage.setUIContent(this.context, "MainAbility/pages/web", null)
}
......@@ -35,4 +34,4 @@ export default class MainAbility extends Ability {
// Ability has back to background
console.log("[Demo] MainAbility onBackground")
}
};
\ No newline at end of file
};
......@@ -19,7 +19,7 @@ export default class Utils {
static sleep(time){
return new Promise((resolve,reject)=>{
setTimeout(()=>{
resolve()
resolve("ok")
},time)
}).then(()=>{
console.info(`sleep ${time} over...`)
......@@ -60,4 +60,4 @@ export default class Utils {
console.info("webFlag emit action state err: " + JSON.stringify(err));
}
}
}
\ No newline at end of file
}
......@@ -241,5 +241,5 @@ export default function webJsunit() {
Utils.registerEvent("backOrForward","index",138,done);
sendEventByKey('webcomponent',10,'');
})
}
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册