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

!11777 bgtask错误修改

Merge pull request !11777 from 朱天怡/master
......@@ -469,7 +469,7 @@ export default class MainAbility extends Ability {
try {
backgroundTaskManager.stopBackgroundRunning(this.context).then(() => {
console.info("Operation stopBackgroundRunning succeeded");
}).catch((err) => {
}).catch((error) => {
console.error(`Operation stopBackgroundRunning failed. code is ${error.code} message is ${error.message}`);
});
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册