管理后台编译严格模式BUG修复
This commit is contained in:
@@ -213,14 +213,14 @@ const AdminGenerationRecords: React.FC = () => {
|
||||
)}
|
||||
{r.status === 'failed' && (
|
||||
<Button size="small" type="primary" danger loading={updating === r.id}
|
||||
onClick={() => setGenModal({ record: r, ratio: r.aspectRatio || '16:9', resolution: r.resolution || '720p', image_size: r.imageSize })}>
|
||||
onClick={() => setGenModal({ record: r, ratio: r.aspectRatio || '16:9', resolution: r.resolution || '720p', image_size: r.imageSize || '2K' })}>
|
||||
重试生成
|
||||
</Button>
|
||||
)}
|
||||
{r.status === 'prompt_optimized' && (
|
||||
<>
|
||||
<Button size="small" type="primary" loading={updating === r.id}
|
||||
onClick={() => setGenModal({ record: r, ratio: '16:9', resolution: '720p', image_size: r.imageSize })}
|
||||
onClick={() => setGenModal({ record: r, ratio: '16:9', resolution: '720p', image_size: r.imageSize || '2K' })}
|
||||
style={{ background: '#6366f1', border: 'none' }}>
|
||||
生成{r.genType === 'video'? "视频" : "图片"}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user