Pre Merge pull request !46 from 李艺为/master

This commit is contained in:
李艺为 2023-08-24 09:16:48 +00:00 committed by Gitee
commit 4cd482f1c2
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, 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"
} }
} }