fix(comment): refresh moderated report detail

This commit is contained in:
2026-09-10 19:40:11 +08:00
parent 85e23ccee3
commit b6b5119e0f
+2 -1
View File
@@ -40,7 +40,8 @@ function ReportedCommentsPage() {
const act = async (row: ReportedComment, action: ModerationAction, done: string) => {
try {
await moderateReportedComment(row.id, action)
const response = await moderateReportedComment(row.id, action)
setDetail((current) => (current?.id === row.id ? response.data : current))
toast.success(done)
void list.query.refetch()
} catch (error) {