From 3292dce71f5454d20e6401d89987b1b14ea5c650 Mon Sep 17 00:00:00 2001 From: al Date: Fri, 9 Aug 2024 20:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Photos/index.js | 7 +++---- next.config.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/Photos/index.js b/components/Photos/index.js index 11da1b3..c15e1a2 100644 --- a/components/Photos/index.js +++ b/components/Photos/index.js @@ -68,7 +68,6 @@ export default function Photos({ const showPhotos = (photos, index) => { currentIndex.current = index; const interval = setInterval(() => { - console.log("bbbbbb") const bodyBox = document.getElementsByClassName("photos-bodyBox")[0]; if (bodyBox) { bodyBox.firstChild.lastChild.style.transform = `translateX(-${ @@ -210,7 +209,7 @@ export default function Photos({ <>
1 ? "grid grid-cols-3 gap-1.5 min-h-[24vw]" : "min-h-[38vw] w-max" + currentPhotos.length > 1 ? "grid grid-cols-3 gap-1.5 min-h-[24vw]" : "w-max" }`} > {currentPhotos.map((item, index) => { @@ -248,9 +247,9 @@ export default function Photos({
+
} - width={currentPhotos.length > 1 ? "24vw" : "36vw"} + width={currentPhotos.length > 1 ? "24vw" : "46vw"} height={currentPhotos.length > 1 ? "24vw" : "100%"} className={`rounded max-w-full ${ item?.type == "hid" && type == "space" ? "imageBlur" : "" diff --git a/next.config.js b/next.config.js index 0f3d125..cc8c70d 100644 --- a/next.config.js +++ b/next.config.js @@ -4,7 +4,7 @@ const nextConfig = { return [ { source: "/api/:path*", - destination: "https://h5api.tiefen.fun/api/:path*", + destination: "https://testapi.tiefen.fun/api/:path*", }, ]; },