From bd34cddbf31db322e31bda723750bbc9aad5dad9 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Sun, 14 Sep 2025 23:55:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84PostPage=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=8F=90=E5=8F=96=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/app/(main)/p/[id]/page.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/app/(main)/p/[id]/page.tsx b/web/src/app/(main)/p/[id]/page.tsx index 745201e..27466e3 100644 --- a/web/src/app/(main)/p/[id]/page.tsx +++ b/web/src/app/(main)/p/[id]/page.tsx @@ -3,7 +3,10 @@ import { cookies } from 'next/headers' import BlogPost from '@/components/blog-post/blog-post' // 这个是approuter固定的传入格式,无法更改 -export default async function PostPage({ params }: { params: { id: string } }) { +interface PostPageProps { + params: { id: string } +} +export default async function PostPage({ params }: PostPageProps) { const cookieStore = await cookies(); const { id } = params; const post = await getPostById({id, token: cookieStore.get('token')?.value || ''});