From 7ae6104546eb062e38ef0d4f6e5c260c5cf34a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Mon, 28 Mar 2022 12:54:18 +0000 Subject: [PATCH] fixed 09e052f from https://gitee.com/ge-yafang/docs/pulls/2667 update zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md. Signed-off-by: @ge-yafang --- .../reference/apis/js-apis-data-distributedobject.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md index 8bd6606682..d58bd4d28d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md @@ -63,6 +63,7 @@ genSessionId(): string ## DistributedObject 表示一个分布式对象。 + ### setSessionId setSessionId(sessionId?: string): boolean @@ -72,16 +73,19 @@ setSessionId(sessionId?: string): boolean **系统能力**:SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | sessionId | string | 否 | 分布式对象在可信组网中的标识ID。如果要退出分布式组网,设置为""或不设置均可。 | **返回值:** + | 类型 | 说明 | | -------- | -------- | | boolean | true:标识设置sessionId成功;
false:标识设置sessionId失败。 | **示例:** + ```js import distributedObject from '@ohos.data.distributedDataObject' var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, -- GitLab