mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-11-26 17:10:55 +00:00
update interfaces/kits/picker/picker.js.
Signed-off-by: BrainL <libuyan1@huawei.com>
This commit is contained in:
parent
015884e072
commit
1454aecf2b
@ -317,7 +317,7 @@ function getDocumentPickerSelectResult(args) {
|
||||
error: undefined,
|
||||
data: undefined
|
||||
};
|
||||
if (args.resultCode === undefined) {
|
||||
if (args === undefined || args.resultCode === undefined) {
|
||||
selectResult.error = getErr(ErrCode.RESULT_ERROR);
|
||||
console.log('[picker] document select selectResult: ' + JSON.stringify(selectResult));
|
||||
return selectResult;
|
||||
@ -418,7 +418,7 @@ function getAudioPickerSelectResult(args) {
|
||||
error: undefined,
|
||||
data: undefined
|
||||
};
|
||||
if (args.resultCode === undefined) {
|
||||
if (args === undefined || args.resultCode === undefined) {
|
||||
selectResult.error = getErr(ErrCode.RESULT_ERROR);
|
||||
console.log('[picker] getAudioPickerSelectResult selectResult: ' + JSON.stringify(selectResult));
|
||||
return selectResult;
|
||||
|
Loading…
Reference in New Issue
Block a user