容错处理

This commit is contained in:
董宏凯 committed 2026-05-18 11:29:40 +08:00
1 parent 0af8ca5f78
commit 836dd73446
6 files changed
+79 -17

No files matched your search

@@ -46,8 +46,14 @@ function MaterialCompleted({ record, expanded, onToggle }: { record: CompletedIn
<CheckCircle2 className="size-3.5 text-green-500 shrink-0" />
<FileText className="size-3.5 text-blue-500 shrink-0" />
<span className="flex-1 font-medium">
已确认{' '}
<span className="text-muted-foreground font-normal">{count} 条素材</span>
{count === 0 && record.action !== 're_search' ? (
'已在无素材的情况下继续写作'
) : (
<>
已确认{' '}
<span className="text-muted-foreground font-normal">{count} 条素材</span>
</>
)}
</span>
{count > 0 && (
expanded