From c22c5172a01cb0e207cd247cefa22a71da814450 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Fri, 26 Sep 2025 15:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FoldableGuilde/README.md | 42 +++++++++++++++++++ .../main/ets/entryability/EntryAbility.ets | 15 +++++++ .../entry/src/main/ets/modules/AsideColum.ets | 15 +++++++ .../entry/src/main/ets/modules/Crease.ets | 15 +++++++ .../entry/src/main/ets/modules/Folder.ets | 15 +++++++ .../main/ets/modules/NavigationComponent.ets | 15 +++++++ .../entry/src/main/ets/modules/PinchImage.ets | 15 +++++++ .../entry/src/main/ets/modules/PinchText.ets | 15 +++++++ .../src/main/ets/modules/PopupComponent.ets | 15 +++++++ .../entry/src/main/ets/modules/Screen.ets | 15 +++++++ .../entry/src/main/ets/modules/Screen2.ets | 15 +++++++ .../entry/src/main/ets/modules/Scroll.ets | 15 +++++++ .../src/main/ets/modules/ScrollParent.ets | 15 +++++++ .../ets/modules/{web/web1.ets => Web.ets} | 15 +++++++ .../entry/src/main/ets/pages/Index.ets | 17 +++++++- .../entry/src/main/ets/utils/WindowUtil.ets | 15 +++++++ .../entry/src/main/ets/utils/source_add1.ets | 15 +++++++ .../entry/src/main/ets/utils/source_add2.ets | 15 +++++++ .../entry/src/main/ets/utils/source_add3.ets | 15 +++++++ FoldableGuilde/entry/src/main/module.json5 | 4 +- ImageEditTaskPool/README.md | 4 +- .../main/ets/entryability/EntryAbility.ets | 2 +- 22 files changed, 318 insertions(+), 6 deletions(-) create mode 100644 FoldableGuilde/README.md rename FoldableGuilde/entry/src/main/ets/modules/{web/web1.ets => Web.ets} (55%) diff --git a/FoldableGuilde/README.md b/FoldableGuilde/README.md new file mode 100644 index 00000000..f6e3da03 --- /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 e2a3c819..bf7df52b 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 4ddb9205..ea3ff727 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 d57b942f..f503dc27 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 f068f488..a844ada2 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 51c837bb..aebc234c 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 9178426f..92d64d8b 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 7978c191..39e17204 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 879cbd97..a7973b7a 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 3f8eb3b6..8cb430e9 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 5166e4e8..db20de2e 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 eda342ce..3b8e8a76 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 0365a8c4..91fd95ba 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 e5d89bd7..d42253db 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 f1605300..a5f4893a 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 4e38be8d..5a0a3d71 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 68883b79..fcc1d5c7 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 c1d709d5..6cde673a 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 598188a8..14dbb369 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 6c07d9d8..8a7a1606 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 8c6a420d..541e5c29 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 f38a1417..969ae52a 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) ?? ''); -- Gitee