提交 7b67b40e 编写于 作者: W wufengshan

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

 Changes to be committed:
上级 85f4f440
......@@ -167,7 +167,11 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种
deviceIds[i] = deviceList[i].deviceId;
}
}
kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000);
try{
kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000);
}catch(e){
console.log("An unexpected error occurred. Error:" + e);
}
}
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册