前端调整评论发布失败的错误消息

This commit is contained in:
2025-06-23 09:15:31 +08:00
parent f933d37f80
commit 4d660d4495

View File

@@ -45,7 +45,7 @@ export function BlogCommentTool({ blogId, onInsertComment, replayTarget, handleC
if ((error as { statusCode: number }).statusCode === 429) { if ((error as { statusCode: number }).statusCode === 429) {
return toast.error('操作太频繁了,稍后再试吧') return toast.error('操作太频繁了,稍后再试吧')
} }
toast.error('发布失败') toast.error(`${(error as Error).message || '发布失败'}`)
} }
} }