mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 19:16:24 +00:00
♻️ refactor: 优化布局组件,调整动画效果并修复ScrollToTop组件的依赖
This commit is contained in:
@ -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>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user