支持缩放和分辨率适配
This commit is contained in:
@@ -31,9 +31,9 @@ export async function load({ params, fetch }) {
|
||||
try {
|
||||
const albumPhotos = await fetchApi(`/album/${photo.albumId}/photo`, fetch);
|
||||
const photos = Array.isArray(albumPhotos) ? albumPhotos : [];
|
||||
|
||||
|
||||
if (photos.length > 0) {
|
||||
const index = photos.findIndex(p => String(p.id) === String(photoId));
|
||||
const index = photos.findIndex((p) => String(p.id) === String(photoId));
|
||||
if (index >= 0) {
|
||||
currentIndex = index;
|
||||
totalPhotos = photos.length;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user