update common/src/main/ets/default/view/PhotoSwiper.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2024-03-07 07:35:01 +00:00 committed by Gitee
parent 7240d6e557
commit 0c929bfd07
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -138,7 +138,7 @@ export struct PhotoSwiper {
if (item == null || item == undefined) {
return JSON.stringify(item) + index;
}
return `${item.data.uri}_${item.data.size}_${item.data.orientation}_${index}`;
return `${item.data.path}_${item.data.size}_${item.data.orientation}_${index}`;
})
}
.cachedCount(this.SWIPE_CACHE_COUNT)