From 8f4285e8a2e50ee59d3afc12f84bc27098e503b7 Mon Sep 17 00:00:00 2001 From: imeepos Date: Fri, 26 Dec 2025 19:16:17 +0800 Subject: [PATCH] fix: bug --- app/(tabs)/sync.tsx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/app/(tabs)/sync.tsx b/app/(tabs)/sync.tsx index 00502f3..2d88fde 100644 --- a/app/(tabs)/sync.tsx +++ b/app/(tabs)/sync.tsx @@ -92,6 +92,40 @@ const GridItem = memo( isVisible: boolean onSelect: (post: any) => void }) => { + // 渲染状态标记 + const renderStatusBadge = () => { + const status = post.status + + // 成功状态不显示标记 + if (status === 'completed' || status === 'success') { + return null + } + + // 失败状态 + if (status === 'failed') { + return ( + + + 失败 + + ) + } + + // 其他状态显示加载中 + return ( + + + 生成中 + + ) + } + return ( onSelect(post)}> {isSelected && } + {/* 状态标记 */} + {renderStatusBadge()} + {isSelectionMode && (