mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-26 16:51:35 +00:00
update product/phone/src/main/ets/view/PhotoBrowserComponent.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
00aff185ba
commit
a341a50cf8
@ -438,11 +438,11 @@ export struct PhotoBrowserComponent {
|
||||
if (currentPhoto == undefined || this.isFromViewDataWithThirdUri) {
|
||||
return;
|
||||
}
|
||||
this.photoDate = DateUtil.getLocalizedDate(currentPhoto?.getDataTaken());
|
||||
this.photoDate = DateUtil.getLocalizedDate(currentPhoto?.getDataTaken?.());
|
||||
if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
|
||||
this.timeAndLocation = `${this.deviceName}/${DateUtil.getLocalizedTime(currentPhoto?.getDataTaken())}`;
|
||||
this.timeAndLocation = `${this.deviceName}/${DateUtil.getLocalizedTime(currentPhoto?.getDataTaken?.())}`;
|
||||
} else {
|
||||
this.timeAndLocation = DateUtil.getLocalizedTime(currentPhoto?.getDataTaken());
|
||||
this.timeAndLocation = DateUtil.getLocalizedTime(currentPhoto?.getDataTaken?.());
|
||||
}
|
||||
this.updateMenu(index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user