支持缩放和分辨率适配

This commit is contained in:
2026-03-20 14:01:41 +08:00
parent e76a1dff71
commit ca084cd229
8 changed files with 969 additions and 97 deletions

View File

@@ -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