update product/phone/src/main/ets/view/PhotoBrowserComponent.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2024-05-28 03:17:59 +00:00 committed by Gitee
parent 5eda4199b1
commit 44778ba56b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -790,8 +790,8 @@ export struct PhotoBrowserComponent {
(AppStorage.get<MediaDataSource>(Constants.APP_KEY_PHOTO_BROWSER) as MediaDataSource);
} else if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
this.dataSource.setDeviceId(param.albumInfo.deviceId);
this.dataSource.setAlbumDataSource
(AppStorage.get<MediaDataSource>(Constants.APP_KEY_PHOTO_BROWSER) as MediaDataSource);
this.dataSource.setAlbumDataSource(
AppStorage.get<MediaDataSource>(Constants.APP_KEY_PHOTO_BROWSER) as MediaDataSource);
} else if (this.pageFrom == Constants.ENTRY_FROM.VIEW_DATA) {
if (String(param.viewData).length === 0) {
Log.error(TAG, 'Invalid uri');