diff --git a/README.en.md b/README.en.md index 743efe46a50b3959b87704f405eb1efe28559c81..b47e0dec27b018dea49d7c22b78667b71e544d5c 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 49bef6e2507dfa647b05ce7931bfd9c1ba492f82..4110a2eb35c989055c673024b5bc3092dc153eb2 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 a931e872f2a43bc899af26f3c4f84f6e514f8cbd..7c151f22e23ec840e0ee96899cb81fa94b82d2b3 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" } diff --git a/entry/src/main/ets/pages/ContactDetailPage.ets b/entry/src/main/ets/pages/ContactDetailPage.ets index d63c0853811d3288f72821ebe7436c034e928f87..78d8367d5e26e92136101012e014f9ea890b0d47 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); + } } /**