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/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);
}
}, []);
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",