From 4f1906a568d5ce85322c149e28e699748c31e1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Tue, 30 Aug 2022 08:52:40 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-display.md. Signed-off-by: @ge-yafang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- zh-cn/application-dev/reference/apis/js-apis-display.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index eae58c773b..679d712b03 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -152,9 +152,9 @@ getAllDisplay(): Promise<Array<Display>> ```js let promise = display.getAllDisplay(); promise.then((data) => { - console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err)); -}).catch((err) => { console.info('Succeeded in obtaining all the display objects. Data: ' + JSON.stringify(data)); +}).catch((err) => { + console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err)); }); ``` -- GitLab