-
评论 ({comments.length})
+
+ 评论 ({loading && comments.length === 0 ? "..." : comments.length})
+
- {comments.length === 0 ? (
+ {loading && comments.length === 0 ? (
+
加载中...
+ ) : loadError ? (
+
加载失败:{loadError}
+ ) : comments.length === 0 ? (
还没有评论
) : (
@@ -71,10 +107,50 @@ export function PostComments({ postId }: PostCommentsProps) {
{comment.content}