未验证 提交 15837ca1 编写于 作者: O openharmony_ci 提交者: Gitee

!21133 修改示例代码

Merge pull request !21133 from renjiecui/master
...@@ -3285,7 +3285,7 @@ setDistributedTables(tables: Array<string>, type: number, config: Distribu ...@@ -3285,7 +3285,7 @@ setDistributedTables(tables: Array<string>, type: number, config: Distribu
**示例:** **示例:**
```js ```js
let config = new DistributedConfig(); let config = new relationalStore.DistributedConfig();
config.autoSync = true; config.autoSync = true;
store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config, function (err) { store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config, function (err) {
if (err) { if (err) {
...@@ -3323,7 +3323,7 @@ store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIB ...@@ -3323,7 +3323,7 @@ store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIB
**示例:** **示例:**
```js ```js
let config = new DistributedConfig(); let config = new relationalStore.DistributedConfig();
config.autoSync = true; config.autoSync = true;
let promise = store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config); let promise = store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config);
promise.then(() => { promise.then(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册