Compare commits
2 Commits
edac5d272e
...
620fd62418
| Author | SHA1 | Date |
|---|---|---|
|
|
620fd62418 | |
|
|
8406b4195c |
|
|
@ -34,7 +34,7 @@ const ResultPage: React.FC = () => {
|
|||
// 任务失败,停止轮询并设置错误
|
||||
setError('任务执行失败');
|
||||
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) {
|
||||
timerRef.current = setTimeout(poll, 1000);
|
||||
|
|
|
|||
Loading…
Reference in New Issue