update product/phone/src/main/ets/pages/index.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2024-04-17 01:50:47 +00:00 committed by Gitee
parent 74651b8a7c
commit 2b8503b94f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -134,7 +134,7 @@ struct IndexPage {
this.preIndex = data as number;
this.currentIndex = this.preIndex;
}).catch((err: Error) => {
this.updatePhotosStore('lastPage', 0);
this.updatePhotosStore('lastPage', 0);
});
} else {
Log.info(TAG, 'photosPreferences is undefined');
@ -302,7 +302,7 @@ struct IndexPage {
isShowSelectPhotoBrowser: $isShowSelectPhotoBrowser,
pageStatus: this.pageStatus
})
.visibility(this.currentIndex === Constants.ALBUM_PAGE_INDEX ? Visibility.Visible : Visibility.Hidden)
.visibility(this.currentIndex === Constants.ALBUM_PAGE_INDEX ? Visibility.Visible : Visibility.Hidden)
}
}
.animationDuration(Constants.NUMBER_0)