fix:photopicker

Signed-off-by: zhouoaoteng <zhouaoteng@huawei.com>
This commit is contained in:
zhouoaoteng 2024-11-16 11:25:01 +08:00
parent e0ca5c9867
commit 54e06a64e3

View File

@ -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) {