diff --git a/app/(main)/post/new/page.tsx b/app/(main)/post/new/page.tsx index 1e5c1b0..70c585e 100644 --- a/app/(main)/post/new/page.tsx +++ b/app/(main)/post/new/page.tsx @@ -109,7 +109,7 @@ export default function NewPostPage() { {postType === "quote" && (
- @@ -123,7 +123,27 @@ export default function NewPostPage() {

预览:

-

选择一个帖子以查看预览...

+ {selectedQuotePostId ? ( + (() => { + const post = mockPosts.find((p) => p.id === selectedQuotePostId) + if (!post) return

未找到帖子

+ return ( +
+

{post.title}

+

+ {post.content} +

+
+ @{post.author.nickname} + · + {new Date(post.createdAt).toLocaleDateString("zh-CN")} +
+
+ ) + })() + ) : ( +

选择一个帖子以查看预览...

+ )}
)}