mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-30 10:40:32 +00:00
fix spelling mistake
Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
This commit is contained in:
parent
a9592d4829
commit
a4b4c7c0b4
@ -32,7 +32,7 @@ declare namespace volumeManager {
|
||||
id: string;
|
||||
uuid: string;
|
||||
description: string;
|
||||
removeAble: boolean;
|
||||
removAble: boolean;
|
||||
state: number;
|
||||
path: string;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ napi_value GetAllVolumes(napi_env env, napi_callback_info info)
|
||||
volumeInfoObject.AddProp("uuid", NVal::CreateUTF8String(env, (*volumeInfo)[i].GetUuid()).val_);
|
||||
volumeInfoObject.AddProp("description",
|
||||
NVal::CreateUTF8String(env, (*volumeInfo)[i].GetDescription()).val_);
|
||||
volumeInfoObject.AddProp("removeAble", NVal::CreateBool(env, (bool)true).val_);
|
||||
volumeInfoObject.AddProp("removAble", NVal::CreateBool(env, (bool)true).val_);
|
||||
volumeInfoObject.AddProp("state", NVal::CreateInt32(env, (*volumeInfo)[i].GetState()).val_);
|
||||
volumeInfoObject.AddProp("path", NVal::CreateUTF8String(env, (*volumeInfo)[i].GetPath()).val_);
|
||||
status = napi_set_element(env, volumeInfoArray, i, volumeInfoObject.val_);
|
||||
|
Loading…
Reference in New Issue
Block a user