提交 f875ac6a 编写于 作者: W wufengshan

Signed-off-by: wufengshan <wufengshan@huawei.com>

 Changes to be committed:
上级 78993a23
...@@ -162,9 +162,9 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种 ...@@ -162,9 +162,9 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种
// get deviceIds // get deviceIds
let deviceIds = []; let deviceIds = [];
if (devManager != null) { if (devManager != null) {
var deviceList = devManager.getTrustedDeviceListSync(); var devices = devManager.getTrustedDeviceListSync();
for (var i = 0; i < deviceList.length; i++) { for (var i = 0; i < devices.length; i++) {
deviceIds[i] = deviceList[i].deviceId; deviceIds[i] = devices[i].deviceId;
} }
} }
try{ try{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册