From 2503adf57c9441b83a2338cf67204e0a1f085da7 Mon Sep 17 00:00:00 2001 From: "1362134550@qq.com" <1362134550@qq.com> Date: Wed, 14 Jan 2026 14:09:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?api=E5=8D=87=E7=BA=A7=E5=88=B022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 4 ++-- README.md | 4 ++-- build-profile.json5 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.en.md b/README.en.md index 743efe4..b47e0de 100644 --- a/README.en.md +++ b/README.en.md @@ -69,8 +69,8 @@ To achieve the distributed capabilities involved in this codelab, you need to ad 1. This sample is only supported on Huawei phones running standard systems. 2. The HarmonyOS version must be HarmonyOS 5.0.5 Release or later. -3. The DevEco Studio version must be DevEco Studio 6.0.0 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS 6.0.0 Release SDK or later. +3. The DevEco Studio version must be DevEco Studio 6.0.2 Release or later. +4. The HarmonyOS SDK version must be HarmonyOS 6.0.2 Release SDK or later. 5. Both devices must be logged in with the same HUAWEI ID. You are advised to enable Find Device. 6. Wi-Fi and Bluetooth must be enabled on both devices. If possible, both devices should be connected to the same LAN. 7. Both devices must have the application installed. \ No newline at end of file diff --git a/README.md b/README.md index 49bef6e..4110a2e 100644 --- a/README.md +++ b/README.md @@ -70,8 +70,8 @@ 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 -3. DevEco Studio版本:DevEco Studio 6.0.0 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 6.0.0 Release SDK及以上。 +3. DevEco Studio版本:DevEco Studio 6.0.2 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 6.0.2 Release SDK及以上。 5. 双端设备需要登录同一华为账号,建议打开查找设备功能。 6. 双端设备需要打开Wi-Fi和蓝牙开关,条件允许时,建议连接同一局域网。 7. 双端设备都需要有该应用。 diff --git a/build-profile.json5 b/build-profile.json5 index a931e87..7c151f2 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -5,7 +5,7 @@ { "name": "default", "signingConfig": "default", - "targetSdkVersion": "6.0.0(20)", + "targetSdkVersion": "6.0.2(22)", "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS" } -- Gitee From f2622a1c2e9e99c3828f1c5a25e691852d15bbb3 Mon Sep 17 00:00:00 2001 From: "1362134550@qq.com" <1362134550@qq.com> Date: Sat, 17 Jan 2026 11:26:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=81=A5=E5=A3=AE=E6=80=A7=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/ContactDetailPage.ets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/ContactDetailPage.ets b/entry/src/main/ets/pages/ContactDetailPage.ets index d63c085..78d8367 100644 --- a/entry/src/main/ets/pages/ContactDetailPage.ets +++ b/entry/src/main/ets/pages/ContactDetailPage.ets @@ -82,7 +82,9 @@ struct ContractDetailPage { onPageShow(): void { let params = this.getUIContext().getRouter().getParams() as Record; - this.initializeData(params.key as string); + if (params && params.key) { + this.initializeData(params.key as string); + } } /** -- Gitee