提交 f269ebe4 编写于 作者: X xinking129

fix error

Signed-off-by: Nxinking129 <xinxin13@huawei.com>
上级 bb338067
......@@ -120,6 +120,7 @@
- [@ohos.events.emitter (Emitter)](js-apis-emitter.md)
- [@ohos.notificationManager (NotificationManager模块)(推荐)](js-apis-notificationManager.md)
- [@ohos.notificationSubscribe (NotificationSubscribe模块)(推荐)](js-apis-notificationSubscribe.md)
- [@ohos.application.StaticSubscriberExtensionContext (NotificationSubscribe模块)(推荐)](js-apis-application-StaticSubscriberExtensionContext.md)
- [系统公共事件定义 (待停用)](commonEvent-definitions.md)
- [@ohos.commonEvent (公共事件模块)(待停用)](js-apis-commonEvent.md)
- [@ohos.notification (Notification模块)(待停用)](js-apis-notification.md)
......
......@@ -74,7 +74,7 @@ startAbility(want: Want, callback: AsyncCallback&lt;void&gt;): void;
try {
this.context.startAbility(want, (error) => {
if (error.code) {
if (error) {
// 处理业务逻辑错误
console.log('startAbility failed, error.code: ' + JSON.stringify(error.code) +
' error.message: ' + JSON.stringify(error.message));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册