fix spelling mistake

Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
This commit is contained in:
张文迪 2022-03-17 10:44:46 +08:00
parent a9592d4829
commit a4b4c7c0b4
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ declare namespace volumeManager {
id: string;
uuid: string;
description: string;
removeAble: boolean;
removAble: boolean;
state: number;
path: string;
}

View File

@ -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_);