From 9a155a58f2d462716d304204d4fba7e632ac07c3 Mon Sep 17 00:00:00 2001 From: "kongzheng6@huawei.com" Date: Thu, 30 Jun 2022 18:57:25 +0800 Subject: [PATCH] update volumemanager docs Signed-off-by: kongzheng6@huawei.com --- .../application-dev/reference/apis/js-apis-volumemanager.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md b/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md index 4d5570a0ff..7934963a80 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md @@ -397,14 +397,14 @@ format(volId: string, callback: AsyncCallback): void; ```js let volId = ""; - volumemanager.format(volumeId, (error, bool) => { + volumemanager.format(volId, (error, bool) => { // do something }); ``` ## volumemanager.partition -partition(diskId: string, type: number): Promise; +partition(volId: string, fstype: string): Promise; 异步对磁盘进行分区,以promise方式返回。 @@ -435,7 +435,7 @@ partition(diskId: string, type: number): Promise; ## volumemanager.partition -partition(diskId: string, type: number, callback: AsyncCallback): void; +partition(volId: string, fstype : string, callback: AsyncCallback): void; 异步对磁盘进行分区,以callback方式返回。 -- GitLab