提交 85f4f440 编写于 作者: W wufengshan

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

 Changes to be committed:
上级 45185452
......@@ -159,9 +159,6 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种
deviceManager.createDeviceManager("bundleName", (err, value) => {
if (!err) {
devManager = value;
}
});
// get deviceIds
let deviceIds = [];
if (devManager != null) {
......@@ -171,6 +168,8 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种
}
}
kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000);
}
});
```
## 相关实例
针对分布式数据开发,有以下相关实例可供参考:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册