mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-11-23 15:29:42 +00:00
fix:photopicker
Signed-off-by: zhouoaoteng <zhouaoteng@huawei.com>
This commit is contained in:
parent
e0ca5c9867
commit
54e06a64e3
@ -203,6 +203,10 @@ function getPhotoPickerSelectResult(args) {
|
|||||||
|
|
||||||
if (args.resultCode === 0) {
|
if (args.resultCode === 0) {
|
||||||
let uris = args.photoUris;
|
let uris = args.photoUris;
|
||||||
|
if (uris === undefined) {
|
||||||
|
console.log('[picker] Photo uris is undefined');
|
||||||
|
uris = [];
|
||||||
|
}
|
||||||
let isOriginal = args.isOriginal;
|
let isOriginal = args.isOriginal;
|
||||||
selectResult.data = new PhotoSelectResult(uris, isOriginal);
|
selectResult.data = new PhotoSelectResult(uris, isOriginal);
|
||||||
} else if (args.resultCode === -1) {
|
} else if (args.resultCode === -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user