提交 964d93ab 编写于 作者: W wangkai

sync

Signed-off-by: Nwangkai <wangkai424@huawei.com>
上级 921958b1
......@@ -4523,6 +4523,8 @@ try {
return;
}
console.log('Succeeded in putting data');
// devices由deviceManager调用getTrustedDeviceListSync方法得到
// deviceManager模块的接口均为系统接口,仅系统应用可用
const devices = ['deviceList'];
const mode = distributedKVStore.SyncMode.PULL_ONLY;
kvStore.sync(devices, mode, 1000);
......@@ -4576,6 +4578,8 @@ try {
return;
}
console.log('Succeeded in putting data');
// devices由deviceManager调用getTrustedDeviceListSync方法得到
// deviceManager模块的接口均为系统接口,仅系统应用可用
const devices = ['deviceList'];
const mode = distributedKVStore.SyncMode.PULL_ONLY;
const query = new distributedKVStore.Query();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册