Browse Source

修复前端报错

lxylxy123321 1 tuần trước cách đây
mục cha
commit
0e0adcfa16
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/pages/Training.tsx

+ 1 - 1
frontend/src/pages/Training.tsx

@@ -277,7 +277,7 @@ const JobRow = memo(function JobRow({ j, onCancel }: { j: TrainingJob; onCancel:
         </div>
       </td>
       <td style={{ fontSize: 13, fontFamily: 'monospace' }}>{j.loss?.toFixed(4) ?? '-'}</td>
-      <td style={{ fontSize: 12 }}>{j.current_epoch}/{Math.max(j.total_steps > 0 ? Math.ceil(j.total_steps / (j.total_steps / (j.current_epoch || 1)) || 1, 1))} 轮</td>
+      <td style={{ fontSize: 12, color: '#666' }}>Epoch {j.current_epoch}</td>
       <td>
         {(j.status === 'training' || j.status === 'pending' || j.status === 'queued' || j.status === 'preprocessing') && (
           <button onClick={() => onCancel(j.id)} style={{ padding: '2px 8px', color: '#e94560', border: '1px solid #e94560', borderRadius: 4, background: 'transparent', cursor: 'pointer', fontSize: 12 }}>取消</button>