♻️ refactor: 优化布局组件,调整动画效果并修复ScrollToTop组件的依赖

This commit is contained in:
2025-07-28 14:32:02 +08:00
parent faa793a68d
commit dc698da285
4 changed files with 17 additions and 11 deletions

View File

@ -12,5 +12,9 @@ export default async function PostPage({ params }: Props) {
const post = await getPostById(id, cookieStore.get('token')?.value || '');
if (!post)
return <div></div>
return <BlogPost post={post} />
return (
<div className="flex flex-col h-100vh">
<BlogPost post={post} />
</div>
)
}