feat: 添加评论功能的客户端信息显示选项,更新相关接口和组件

This commit is contained in:
2025-09-13 16:04:09 +08:00
parent 011dc298c2
commit 2d0e1a46e2
10 changed files with 279 additions and 234 deletions

View File

@ -123,13 +123,14 @@ export function CommentItem(
});
}
const onReply = ({ commentContent, isPrivate }: { commentContent: string, isPrivate: boolean }) => {
const onReply = ({ commentContent, isPrivate, showClientInfo }: { commentContent: string, isPrivate: boolean, showClientInfo: boolean }) => {
createComment({
targetType: comment.targetType,
targetId: comment.targetId,
content: commentContent,
replyId: comment.id,
isPrivate,
showClientInfo
}).then(() => {
toast.success(t("comment_success"));
reloadReplies();