From 07ca467f706f13130e659fb7d02b0daeeddf0811 Mon Sep 17 00:00:00 2001 From: besscroft Date: Sat, 16 Nov 2024 14:51:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C=E9=80=9A=E8=BF=87=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=89=93=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Masonry.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Masonry.tsx b/components/Masonry.tsx index eec37c0..feaf392 100644 --- a/components/Masonry.tsx +++ b/components/Masonry.tsx @@ -46,7 +46,7 @@ export default function Masonry(props : Readonly) { ) useEffect(() => { - const fetchData = async (id: number) => { + const fetchData = async (id: string) => { try { const res = await fetch(`/api/open/get-image-by-id?id=${id}`, { headers: { @@ -66,8 +66,8 @@ export default function Masonry(props : Readonly) { } }; const id = searchParams.get('id') - if (Number(id) > 0) { - fetchData(Number(id)); + if (id) { + fetchData(id); } }, []); From 776dff305f386cdc610dc48bfdb0dfe68ede9758 Mon Sep 17 00:00:00 2001 From: besscroft Date: Sat, 16 Nov 2024 14:53:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/about/page.tsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/about/page.tsx b/app/admin/about/page.tsx index 361d7b5..a889ff2 100644 --- a/app/admin/about/page.tsx +++ b/app/admin/about/page.tsx @@ -53,7 +53,7 @@ export default function About() { /> -

v2.0.2

+

v2.0.3

PicImpact 是一个摄影师专用的摄影作品展示网站,基于 Next.js + Hono.js 开发。
diff --git a/package.json b/package.json index 3aee769..72f8b04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "picimpact", - "version": "2.0.2", + "version": "2.0.3", "private": true, "author": "Bess Croft ", "packageManager": "pnpm@9.7.1",