!962 fix:photopicker

Merge pull request !962 from zhouoaoteng/master
This commit is contained in:
openharmony_ci 2024-11-18 11:17:45 +00:00 committed by Gitee
commit a90b28fbc0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -203,6 +203,10 @@ function getPhotoPickerSelectResult(args) {
if (args.resultCode === 0) {
let uris = args.photoUris;
if (uris === undefined) {
console.log('[picker] Photo uris is undefined');
uris = [];
}
let isOriginal = args.isOriginal;
selectResult.data = new PhotoSelectResult(uris, isOriginal);
} else if (args.resultCode === -1) {