diff --git a/src/pages/Forum/Detail/index.tsx b/src/pages/Forum/Detail/index.tsx index 4626a82..5827c41 100644 --- a/src/pages/Forum/Detail/index.tsx +++ b/src/pages/Forum/Detail/index.tsx @@ -147,6 +147,7 @@ const ForumDetail: React.FC = () => {
{post?.title || '帖子标题'} }> + {post?.user?.userName || '无'} @@ -157,7 +158,16 @@ const ForumDetail: React.FC = () => { {post?.tagList?.map((tag: string) => ( {tag} ))} - + {isMyPost && ( + + )}
@@ -182,16 +192,7 @@ const ForumDetail: React.FC = () => { > 收藏 {post?.favourNum ?? 0} - {isMyPost && ( - - )} +