From 4902bf8f5f7f128e07654f17cfadf7c212119315 Mon Sep 17 00:00:00 2001 From: libohaoh <9691080+libohaoh@user.noreply.gitee.com> Date: Mon, 25 Apr 2022 09:58:28 +0000 Subject: [PATCH] update Distributed/OHMailETS/entry/src/main/ets/MainAbility/pages/index.ets. --- .../entry/src/main/ets/MainAbility/pages/index.ets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Distributed/OHMailETS/entry/src/main/ets/MainAbility/pages/index.ets b/Distributed/OHMailETS/entry/src/main/ets/MainAbility/pages/index.ets index 5849c159..5e331aa6 100644 --- a/Distributed/OHMailETS/entry/src/main/ets/MainAbility/pages/index.ets +++ b/Distributed/OHMailETS/entry/src/main/ets/MainAbility/pages/index.ets @@ -40,8 +40,8 @@ function RegisterDeviceListCallback() { discovereDeviceIdList.push(remoteDeviceModel.discoverList[i].deviceId); } DeviceIdList.length = 0; - for (var j = 0; j < deviceSize; i++) { - DeviceIdList.push(remoteDeviceModel.deviceList[j].deviceId); + for (var i = 0; i < deviceSize; i++) { + DeviceIdList.push(remoteDeviceModel.deviceList[i].deviceId); } if (deviceSize === 0) { @@ -91,8 +91,8 @@ function onStartRemoteAbility(deviceId, dataList: any[]) { remoteDeviceId: localDeviceId } var wantValue = { - bundleName: 'com.huawei.cookbook', - abilityName: 'com.example.entry.MainAbility', + bundleName: 'com.example.ohmailets', + abilityName: 'com.example.ohmailets.MainAbility', deviceId: deviceId, parameters: params }; @@ -136,8 +136,8 @@ async function onConnectRemoteService(deviceId) { connectedAbility = await featureAbility.connectAbility( { deviceId: deviceId, - bundleName: "com.huawei.cookbook", - abilityName: "com.example.entry.ServiceAbility", + bundleName: "com.example.ohmailets", + abilityName: "com.example.ohmailets.ServiceAbility", }, { onConnect: onConnectCallback, -- Gitee