未验证 提交 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
**示例:**
```js
let config = new DistributedConfig();
let config = new relationalStore.DistributedConfig();
config.autoSync = true;
store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config, function (err) {
if (err) {
......@@ -3323,7 +3323,7 @@ store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIB
**示例:**
```js
let config = new DistributedConfig();
let config = new relationalStore.DistributedConfig();
config.autoSync = true;
let promise = store.setDistributedTables(["EMPLOYEE"], relationalStore.DistributedType.DISTRIBUTED_CLOUD, config);
promise.then(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册