!46 解决因imageknife模块中GifWorker.ts使用的worker类型与index.ets中不一致导致无法加载网络gif的问题

Merge pull request !46 from 李艺为/master
This commit is contained in:
openharmony_ci 2023-08-24 11:21:13 +00:00 committed by Gitee
commit bbcaf28e38
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,8 @@ import {
ImageKnifeComponent,
ImageKnifeOption,
} from '@ohos/imageknife'
import ArkWorker from '@ohos.worker'
import worker from '@ohos.worker';
@Entry
@Component
struct IndexFunctionDemo {
@ -85,7 +86,7 @@ struct IndexFunctionDemo {
}
aboutToAppear() {
this.globalGifWorker = new ArkWorker.Worker('entry/ets/pages/workers/gifParseWorker.ts', {
this.globalGifWorker = new worker.ThreadWorker('entry/ets/workers/GifLoadWorker.ts', {
type: 'classic',
name: 'ImageKnifeParseGIF'
})

View File

@ -1,6 +1,6 @@
{
"hvigorVersion": "2.4.2",
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "2.4.2"
"@ohos/hvigor-ohos-plugin": "3.0.2"
}
}