lint
This commit is contained in:
@@ -41,8 +41,8 @@ export function BlogCommentTool({ blogId, onInsertComment, replayTarget, handleC
|
||||
onInsertComment(res);
|
||||
handleClearReplayTarget();
|
||||
}
|
||||
} catch (error: any) {
|
||||
if (error.statusCode === 429) {
|
||||
} catch (error) {
|
||||
if ((error as { statusCode: number }).statusCode === 429) {
|
||||
return toast.error('操作太频繁了,稍后再试吧')
|
||||
}
|
||||
toast.error('发布失败')
|
||||
|
||||
@@ -45,7 +45,7 @@ export function BlogComments({ blogId }: { blogId: string }) {
|
||||
<div className="flex flex-col">
|
||||
{
|
||||
data.filter(d => !d.parentId)
|
||||
.map((d, dIndex) => (
|
||||
.map((d) => (
|
||||
<div key={d.id} className="border-b border-zinc-300 py-2 last:border-none">
|
||||
<h1 className="text-zinc-500">{d.user ? d.user.nickname : '匿名'}</h1>
|
||||
<div className="whitespace-pre-wrap break-all">{d.content}</div>
|
||||
|
||||
Reference in New Issue
Block a user