From 0c273e42695b888acd868e656d6d78db20687aaa Mon Sep 17 00:00:00 2001 From: anln Date: Tue, 23 Jul 2024 20:57:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E8=BD=AE?= =?UTF-8?q?=E6=92=AD=E5=B0=BA=E5=AF=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/profile/[mid]/page.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/profile/[mid]/page.js b/app/profile/[mid]/page.js index f531be0..7208c49 100644 --- a/app/profile/[mid]/page.js +++ b/app/profile/[mid]/page.js @@ -67,7 +67,7 @@ export default function PersonSpace() { })), ]; - // console.log("photosArr", photosArr); + console.log("photosArr", photosArr); setTopPhotos(photosArr); setLoading(false); } catch (error) { @@ -170,7 +170,7 @@ export default function PersonSpace() { {topPhotos.map((photo, index) => (
{ if (photo.type == "video") { @@ -183,7 +183,7 @@ export default function PersonSpace() { } else { showPhotos( topPhotos.filter((it) => it.type == "img"), - index + topPhotos.filter((it) => it.type == "img").indexOf(photo) ); } }}