修复断网状态下错误占位图不显示

Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
zenggaofeng 2023-12-18 15:14:15 +08:00
parent 7299aebf1b
commit 6c852da719
5 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 2.1.2-rc.1
- 修复断网状态下错误展位图不显示
## 2.1.2-rc.0
- 开放.jpg .png .gif解码能力

View File

@ -4,7 +4,7 @@
"name": "entry",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.0",
"version": "2.1.2-rc.1",
"dependencies": {
"@ohos/libraryimageknife": "file:../sharedlibrary",
"@ohos/disklrucache": "^2.0.2-rc.0",

View File

@ -14,7 +14,7 @@
"main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module",
"version": "2.1.2-rc.0",
"version": "2.1.2-rc.1",
"dependencies": {
"pako": "^2.1.0",
"@ohos/disklrucache": "^2.0.2-rc.0",

View File

@ -77,6 +77,8 @@ export class HttpDownloadClient implements IDataFetch {
} else {
onError(`HttpDownloadClient has error, http code = ${data}`)
}
}).catch((err:Error)=>{
onError(`HttpDownloadClient has error, http code = ${err}`)
})
} catch (err) {
onError('HttpDownloadClient catch err request uuid ='+request.uuid)

View File

@ -6,6 +6,6 @@
"name": "imageknife",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.0",
"version": "2.1.2-rc.1",
"dependencies": {}
}