未验证 提交 016b265f 编写于 作者: 1 189******51 提交者: Gitee

IssueNo: #I7WVE9:[新需求]: Rectify the arkts syntax on monthly

Description: Rectify the arkts syntax2 on monthly
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: N189******51 <lipeicheng5@huawei.com>
上级 d3cb389b
...@@ -319,8 +319,8 @@ import { BusinessError } from '@ohos.base'; ...@@ -319,8 +319,8 @@ import { BusinessError } from '@ohos.base';
try { try {
launcherBundleManager.getShortcutInfo("com.example.demo") launcherBundleManager.getShortcutInfo("com.example.demo")
.then((data: launcherBundleManager.ShortcutInfo[]) => { .then((data: launcherBundleManager.ShortcutInfo[]) => {
console.log("data is " + JSON.stringify(data)); console.log("data is " + JSON.stringify(data));
}).catch ((errData: BusinessError) => { }).catch ((errData: BusinessError) => {
console.error(`errData is errCode:${errData.code} message:${errData.message}`); console.error(`errData is errCode:${errData.code} message:${errData.message}`);
}); });
} catch (errData) { } catch (errData) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册