diff --git a/FoldableGuilde/README.md b/FoldableGuilde/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f6e3da03686d459b85cda64275f3b172c29ba13a --- /dev/null +++ b/FoldableGuilde/README.md @@ -0,0 +1,42 @@ +# 折叠屏开发实践样例代码工程 + +### 简介 +本示例实现折叠屏上的多种常见功能,如悬停、折痕区避让、沉浸浏览等。 + +### 工程目录 +``` +├──entry/src/main/ets // 代码区 +│ ├──entryability +│ │ └──EntryAbility.ets // 本地启动ability +│ ├──modules +│ │ ├──AsideColum.ets +│ │ ├──Crease.ets +│ │ ├──Folder.ets +│ │ ├──NavigationComponent.ets +│ │ ├──PinchImage.ets +│ │ ├──PinchText.ets +│ │ ├──PopupComponent.ets +│ │ ├──Screen.ets +│ │ ├──Screen2.ets +│ │ ├──Scroll.ets +│ │ ├──ScrollParent.ets +│ │ └──Web.ets +│ ├──pages +│ │ └──Index.ets +│ └──utils +│ ├──source_add1.ets +│ ├──source_add2.ets +│ ├──source_add3.ets +│ └──WindowUtil.ets +└──entry/src/main/resources // 资源文件目录 +``` + +### 使用说明 +1. 按照个人需求在Index.ets中调用相关功能并运行。 + + +### 约束与限制 +1. 本示例仅支持标准系统上运行,支持设备:华为手机。 +2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file diff --git a/FoldableGuilde/entry/src/main/ets/entryability/EntryAbility.ets b/FoldableGuilde/entry/src/main/ets/entryability/EntryAbility.ets index e2a3c8196f1183f15a7ada7e9fe31b8f955c8252..bf7df52b7b2e2fb5382adaef9257df01e0738f49 100644 --- a/FoldableGuilde/entry/src/main/ets/entryability/EntryAbility.ets +++ b/FoldableGuilde/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; import { hilog } from '@kit.PerformanceAnalysisKit'; import { window } from '@kit.ArkUI'; diff --git a/FoldableGuilde/entry/src/main/ets/modules/AsideColum.ets b/FoldableGuilde/entry/src/main/ets/modules/AsideColum.ets index 4ddb92051691544caa883ad75fa3616ed3a02068..ea3ff727ed9107db5b7636b7675356932b9d53dc 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/AsideColum.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/AsideColum.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Component export struct AsideColumn { @State l_width: string = '100%'; diff --git a/FoldableGuilde/entry/src/main/ets/modules/Crease.ets b/FoldableGuilde/entry/src/main/ets/modules/Crease.ets index d57b942f5aa1b44b91de350af69edbff358c012b..f503dc271cc6a4704fa8d865d565d63ef70828fd 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/Crease.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Crease.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // [Start crease] import { display } from '@kit.ArkUI'; diff --git a/FoldableGuilde/entry/src/main/ets/modules/Folder.ets b/FoldableGuilde/entry/src/main/ets/modules/Folder.ets index f068f4884ded09bb47a9a33642d30ee7c0db8b11..a844ada272b9ec3fe364df89ff625bad718d1551 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/Folder.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Folder.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // [Start Folder] @Component export struct Folder { diff --git a/FoldableGuilde/entry/src/main/ets/modules/NavigationComponent.ets b/FoldableGuilde/entry/src/main/ets/modules/NavigationComponent.ets index 51c837bb2fa45859b9f15f71d77ba032493aaa68..aebc234cf95cc3ef039e6ab02d0985298c1b214a 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/NavigationComponent.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/NavigationComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // [Start NavigationComponent] @Component export struct NavigationComponent { diff --git a/FoldableGuilde/entry/src/main/ets/modules/PinchImage.ets b/FoldableGuilde/entry/src/main/ets/modules/PinchImage.ets index 9178426fb56fb2baee8c44318da3da17ee967a90..92d64d8bb65f1b1300134e45e7a6b48751b59906 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/PinchImage.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/PinchImage.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // [Start PinchImage] @Component export struct PinchImage { diff --git a/FoldableGuilde/entry/src/main/ets/modules/PinchText.ets b/FoldableGuilde/entry/src/main/ets/modules/PinchText.ets index 7978c191086ca70ac1e56c8810dcb7110daa9764..39e172047ecd9cd576c91184bc13f24f7aab9155 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/PinchText.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/PinchText.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Component export struct PinchText { text: string = diff --git a/FoldableGuilde/entry/src/main/ets/modules/PopupComponent.ets b/FoldableGuilde/entry/src/main/ets/modules/PopupComponent.ets index 879cbd971eea20636b425e725ec7ec78ae89129b..a7973b7aaa1a58fdec35327107851bf30a560343 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/PopupComponent.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/PopupComponent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // [Start PopupExample] @Component export struct PopupExample { diff --git a/FoldableGuilde/entry/src/main/ets/modules/Screen.ets b/FoldableGuilde/entry/src/main/ets/modules/Screen.ets index 3f8eb3b693a28fae2eb94288ba71edfc7972eebf..8cb430e92f8beb81586dbc4d815dec2e69585524 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/Screen.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Screen.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { display, window } from '@kit.ArkUI' import { common } from '@kit.AbilityKit'; import { BusinessError } from '@kit.BasicServicesKit'; diff --git a/FoldableGuilde/entry/src/main/ets/modules/Screen2.ets b/FoldableGuilde/entry/src/main/ets/modules/Screen2.ets index 5166e4e8fb480e677634e6947941891e7f1620d0..db20de2ea65e099bab8a8122f3f9d44727c09f8d 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/Screen2.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Screen2.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // FoldableScreen.ets import { display } from '@kit.ArkUI' import { WindowUtil } from '../utils/WindowUtil'; diff --git a/FoldableGuilde/entry/src/main/ets/modules/Scroll.ets b/FoldableGuilde/entry/src/main/ets/modules/Scroll.ets index eda342ce2a08941b036ecec22ac98e0853944ad3..3b8e8a765776677f831073b3bf7f5e1bac691473 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/Scroll.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Scroll.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Component export struct ScrollComponent { @State list: string[] = new Array(100).fill(''); diff --git a/FoldableGuilde/entry/src/main/ets/modules/ScrollParent.ets b/FoldableGuilde/entry/src/main/ets/modules/ScrollParent.ets index 0365a8c496c8539e37d4eda4d92f31fd7fcbd6ef..91fd95ba260401fcd5f9d949291b1d6b4d96effb 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/ScrollParent.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/ScrollParent.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { webview } from '@kit.ArkWeb'; @Component diff --git a/FoldableGuilde/entry/src/main/ets/modules/web/web1.ets b/FoldableGuilde/entry/src/main/ets/modules/Web.ets similarity index 55% rename from FoldableGuilde/entry/src/main/ets/modules/web/web1.ets rename to FoldableGuilde/entry/src/main/ets/modules/Web.ets index e5d89bd71e2e6fe81d35f8988e6ebbc0784231e2..d42253db109a61ac918b21726f24dbbb4f75cb03 100644 --- a/FoldableGuilde/entry/src/main/ets/modules/web/web1.ets +++ b/FoldableGuilde/entry/src/main/ets/modules/Web.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // xxx.ets import { webview } from '@kit.ArkWeb'; diff --git a/FoldableGuilde/entry/src/main/ets/pages/Index.ets b/FoldableGuilde/entry/src/main/ets/pages/Index.ets index f1605300a09148969b98ebd92954a943fff22a50..a5f4893a95aa07d0a203dc9beb14c494f74aa6ca 100644 --- a/FoldableGuilde/entry/src/main/ets/pages/Index.ets +++ b/FoldableGuilde/entry/src/main/ets/pages/Index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { AsideColumn } from '../modules/AsideColum'; import { Crease } from '../modules/Crease'; import { Folder } from '../modules/Folder'; @@ -9,7 +24,7 @@ import { FoldableScreen } from '../modules/Screen2'; import { Movie } from '../modules/Screen'; import { ScrollTest } from '../utils/source_add1'; import { NestedScroll } from '../modules/ScrollParent'; -import { Web1 } from '../modules/web/web1'; +import { Web1 } from '../modules/Web'; import { display } from '@kit.ArkUI'; import { deviceInfo } from '@kit.BasicServicesKit'; diff --git a/FoldableGuilde/entry/src/main/ets/utils/WindowUtil.ets b/FoldableGuilde/entry/src/main/ets/utils/WindowUtil.ets index 4e38be8ddac0495033aeb3221d71e3aa46615521..5a0a3d718ba3278a47e430f7fc92a5c6d3b85528 100644 --- a/FoldableGuilde/entry/src/main/ets/utils/WindowUtil.ets +++ b/FoldableGuilde/entry/src/main/ets/utils/WindowUtil.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // utils/WindowsUtil.ets import { window } from '@kit.ArkUI'; import { BusinessError } from '@kit.BasicServicesKit'; diff --git a/FoldableGuilde/entry/src/main/ets/utils/source_add1.ets b/FoldableGuilde/entry/src/main/ets/utils/source_add1.ets index 68883b79ffca7b1b409ad4f30f681872a980eca5..fcc1d5c71bf56f74d39b57cf837c20e00c13f0ed 100644 --- a/FoldableGuilde/entry/src/main/ets/utils/source_add1.ets +++ b/FoldableGuilde/entry/src/main/ets/utils/source_add1.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Component // [Start ScrollTest] export struct ScrollTest { diff --git a/FoldableGuilde/entry/src/main/ets/utils/source_add2.ets b/FoldableGuilde/entry/src/main/ets/utils/source_add2.ets index c1d709d582aa3277217c6fbeea961cad40f8c220..6cde673afed2b98cc965a3aa4968502afb47c35a 100644 --- a/FoldableGuilde/entry/src/main/ets/utils/source_add2.ets +++ b/FoldableGuilde/entry/src/main/ets/utils/source_add2.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { window, display } from '@kit.ArkUI'; import { BusinessError } from '@kit.BasicServicesKit'; export class Breakpoint { diff --git a/FoldableGuilde/entry/src/main/ets/utils/source_add3.ets b/FoldableGuilde/entry/src/main/ets/utils/source_add3.ets index 598188a876e49c668a6b91515b482af6e55823ea..14dbb369f58c5fb72e3e2ad900d3234cd2fb9c96 100644 --- a/FoldableGuilde/entry/src/main/ets/utils/source_add3.ets +++ b/FoldableGuilde/entry/src/main/ets/utils/source_add3.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { window } from '@kit.ArkUI'; import { BusinessError } from '@kit.BasicServicesKit'; export class BreakpointHeight { diff --git a/FoldableGuilde/entry/src/main/module.json5 b/FoldableGuilde/entry/src/main/module.json5 index 6c07d9d8839ac9716809c6e06c21805d52c138fe..8a7a1606e2be5ec1a7c4332d3293d7593c2a4f13 100644 --- a/FoldableGuilde/entry/src/main/module.json5 +++ b/FoldableGuilde/entry/src/main/module.json5 @@ -5,9 +5,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", - "tablet", - "2in1" + "phone" ], "deliveryWithInstall": true, "installationFree": false, diff --git a/ImageEditTaskPool/README.md b/ImageEditTaskPool/README.md index 8c6a420d668dbed5225b69d5d6a6056f373079cc..541e5c294623edb31bb43ea9d4b589c08d1afe93 100644 --- a/ImageEditTaskPool/README.md +++ b/ImageEditTaskPool/README.md @@ -25,7 +25,9 @@ │ ├──view │ │ ├──AdjustContentView.ets // 色域调整视图 │ │ ├──CommBackgroundIcon.ets // 公共带背景色icon -│ │ └──TitleBar.ets // 顶部工具栏 +│ │ ├──newBuffer1.ets +│ │ ├──TitleBar.ets // 顶部工具栏 +│ │ └──WorkerPort.ets │ └──viewmodel │ ├──IconListViewModel.ets // icon数据 │ ├──MessageItem.ets // 多线程封装消息 diff --git a/ImageEditTaskPool/entry/src/main/ets/entryability/EntryAbility.ets b/ImageEditTaskPool/entry/src/main/ets/entryability/EntryAbility.ets index f38a1417a9cc7517b57d2cdb7071ac9618b52725..969ae52a030e9b743525ec7950b803ef4758479c 100644 --- a/ImageEditTaskPool/entry/src/main/ets/entryability/EntryAbility.ets +++ b/ImageEditTaskPool/entry/src/main/ets/entryability/EntryAbility.ets @@ -69,7 +69,7 @@ export default class EntryAbility extends UIAbility { JSON.stringify(err) ?? ''); } - windowStage.loadContent('pages/HomePage', (err, data) => { + windowStage.loadContent('pages/HomePage', (err) => { if (err.code) { hilog.error(0x0000, TAG, 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');