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

2.更新hvigor插件到3.0.2公开版本

Signed-off-by: 李艺为 <15897461476@139.com>
This commit is contained in:
李艺为 2023-08-24 17:14:23 +08:00
parent 031a62736a
commit d41e37fa7b
2 changed files with 5 additions and 4 deletions

View File

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

View File

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