From c0e18735521c50ab177dc8a918a05570238bfd67 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Tue, 9 May 2023 03:43:02 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md. fix file Signed-off-by: xinking129 --- .../reference/apis/js-apis-commonEventManager.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 e25142726b..e22caf3d2b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -608,10 +608,10 @@ setStaticSubscriberState(enable: boolean, callback: AsyncCallback): void; ```ts CommonEventManager.setStaticSubscriberState(true, (err) => { if (err.code) { - console.info(`Set static subscribe event state callback failed, errCode: ${err.code}, errMes: ${err.message}`); + console.info(`Set static subscriber state callback failed, errCode: ${err.code}, errMes: ${err.message}`); return; } - console.info(`Set static subscribe event state callback success`); + console.info(`Set static subscriber state callback success`); }); ``` @@ -652,8 +652,8 @@ setStaticSubscriberState(enable: boolean): Promise; ```ts CommonEventManager.setStaticSubscriberState(false).then(() => { - console.info(`Set static subscribe event state promise success`); + console.info(`Set static subscriber state promise success`); }).catch ((err) => { - console.info(`Set static subscribe event state promise failed, errCode: ${err.code}, errMes: ${err.message}`); + console.info(`Set static subscriber state promise failed, errCode: ${err.code}, errMes: ${err.message}`); }); ``` \ No newline at end of file -- GitLab