未验证 提交 95c5c782 编写于 作者: J jackd320 提交者: Gitee

Signed-off-by: jackd320 <jack.dai@huawei.com>

Signed-off-by: Njackd320 <jack.dai@huawei.com>
上级 80856d69
...@@ -102,7 +102,7 @@ try { ...@@ -102,7 +102,7 @@ try {
let localUpdater = update.getLocalUpdater(); let localUpdater = update.getLocalUpdater();
} catch(error) { } catch(error) {
console.error(`Fail to get localUpdater error: ${error}`); console.error(`Fail to get localUpdater error: ${error}`);
} };
``` ```
## Updater ## Updater
...@@ -844,7 +844,7 @@ const versionDigestInfo = { ...@@ -844,7 +844,7 @@ const versionDigestInfo = {
}; };
// 清除选项 // 清除选项
lconstet clearOptions = { const clearOptions = {
status: update.UpgradeStatus.UPGRADE_FAIL, status: update.UpgradeStatus.UPGRADE_FAIL,
}; };
updater.clearError(versionDigestInfo, clearOptions).then(() => { updater.clearError(versionDigestInfo, clearOptions).then(() => {
...@@ -1248,7 +1248,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void ...@@ -1248,7 +1248,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void
**示例:** **示例:**
```ts ```ts
localUpdater upgradeFiles = [{ const upgradeFiles = [{
fileType: update.ComponentType.OTA, // OTA包 fileType: update.ComponentType.OTA, // OTA包
filePath: "path" // 本地升级包路径 filePath: "path" // 本地升级包路径
}]; }];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册