提交 0740ef6c 编写于 作者: J junyi233

扫描缺陷整改

Signed-off-by: Njunyi233 <zhengjun29@huawei.com>
上级 492f25d0
...@@ -645,7 +645,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -645,7 +645,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
bundleManager.setApplicationEnabled(bundleName, false).then(()=> { bundle.setApplicationEnabled(bundleName, false).then(()=> {
console.info('setApplicationEnabled successfully.'); console.info('setApplicationEnabled successfully.');
}).catch(err=> { }).catch(err=> {
console.error('setApplicationEnabled failed.'); console.error('setApplicationEnabled failed.');
...@@ -766,7 +766,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -766,7 +766,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let permission = "ohos.permission.GET_BUNDLE_INFO"; let permission = "ohos.permission.GET_BUNDLE_INFO";
bundleManager.getPermissionDef(permission, (err, data) => { bundle.getPermissionDef(permission, (err, data) => {
if (err) { if (err) {
console.error('getPermissionDef failed:' + err.message); console.error('getPermissionDef failed:' + err.message);
} else { } else {
......
...@@ -41,7 +41,7 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; ...@@ -41,7 +41,7 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor';
| 名称 | 说明 | | 名称 | 说明 |
| ---------- | --------------- | | ---------- | --------------- |
| app | 监听应用事件。 | | add | 监听应用事件。 |
| update | 监听更新事件。 | | update | 监听更新事件。 |
| remove | 监听删除事件。 | | remove | 监听删除事件。 |
......
...@@ -240,7 +240,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn ...@@ -240,7 +240,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn
以下错误码的详细介绍请参见[ohos.zlib错误码](../errorcodes/errorcode-zlib.md) 以下错误码的详细介绍请参见[ohos.zlib错误码](../errorcodes/errorcode-zlib.md)
| 错误码ID | 错误信息 | 错误码ID | 错误信息 |
| -------- | --------------------------------------| | -------- | --------------------------------------|
| 900001 | The Input source file is invalid. | | 900001 | The Input source file is invalid. |
| 900002 | The Input destination file is invalid. | | 900002 | The Input destination file is invalid. |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册