diff --git a/src/frontend/src/components/MailPanel.tsx b/src/frontend/src/components/MailPanel.tsx index 1376d2f..cb425dc 100644 --- a/src/frontend/src/components/MailPanel.tsx +++ b/src/frontend/src/components/MailPanel.tsx @@ -136,8 +136,8 @@ export default function MailPanel() { {detail.type || 'text'} - - {detail.is_read ? '已读' : '未读'} + + {STATUS_LABELS[detail.status] || detail.status}
{detail.title}
@@ -180,31 +180,18 @@ export default function MailPanel() { {/* 操作 */}
- {!detail.is_read && ( - - )} - {detail.status !== 'done' && ( + {detail.status === 'failed' && ( + border: '1px solid #f59e0b', background: '#f59e0b22', color: '#f59e0b', cursor: 'pointer', + }}>🔄 重试 )}