From 1c0489af42a1a62ff44b092ff391aa55e79fe361 Mon Sep 17 00:00:00 2001 From: zyjhandsome Date: Mon, 27 Feb 2023 22:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=AD=94=E5=BA=94=E4=B8=ADco?= =?UTF-8?q?nsole.log=E4=BF=AE=E6=94=B9=E4=B8=BAconsole.error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyjhandsome --- .../mission-set-icon-name-for-task-snapshot.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/application-models/mission-set-icon-name-for-task-snapshot.md b/zh-cn/application-dev/application-models/mission-set-icon-name-for-task-snapshot.md index 10c33b3025..cf58402bdc 100644 --- a/zh-cn/application-dev/application-models/mission-set-icon-name-for-task-snapshot.md +++ b/zh-cn/application-dev/application-models/mission-set-icon-name-for-task-snapshot.md @@ -36,9 +36,9 @@ this.context.setMissionIcon(imagePixelMap, (err) => { ```ts this.context.setMissionLabel('test').then(() => { - console.log('setMissionLabel succeeded.'); + console.info('setMissionLabel succeeded.'); }).catch((err) => { - console.log(`setMissionLabel failed, code is ${err.code}, message is ${err.message}`); + console.error(`setMissionLabel failed, code is ${err.code}, message is ${err.message}`); }); ``` -- GitLab