From ba291dd164a17fdb48d49302ff7eb0eb8a2c0788 Mon Sep 17 00:00:00 2001 From: xuzhihao Date: Wed, 15 Mar 2023 11:25:00 +0800 Subject: [PATCH] =?UTF-8?q?BugFix:=20=E4=BF=AE=E5=A4=8Derr.code=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuzhihao --- .../reference/apis/js-apis-commonEventManager.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md index 320fddb51d..b3bdfc02bd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -327,7 +327,7 @@ let subscribeInfo = { //订阅公共事件回调 function SubscribeCB(err, data) { - if (err.code) { + if (err) { console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribe "); -- GitLab