fix: add status procesing

This commit is contained in:
imeepos 2025-09-28 21:16:47 +08:00
parent 53c80f1777
commit 8406b4195c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const ResultPage: React.FC = () => {
// 任务失败,停止轮询并设置错误 // 任务失败,停止轮询并设置错误
setError('任务执行失败'); setError('任务执行失败');
return; return;
} else if (result.status === 'running' || result.status === 'pending' || result.status === 'pending_audit') { } else if (result.status === 'running' || result.status === 'pending' || result.status === 'pending_audit' || result.status === 'processing') {
// 任务仍在进行中,继续轮询 // 任务仍在进行中,继续轮询
if (attempts < maxAttempts) { if (attempts < maxAttempts) {
timerRef.current = setTimeout(poll, 1000); timerRef.current = setTimeout(poll, 1000);