Compare commits
No commits in common. "620fd62418a6597567cbf25e0f1fbd5ea79e2a93" and "edac5d272e2ab0b850fbd065ec355f380d2528be" have entirely different histories.
620fd62418
...
edac5d272e
|
|
@ -34,7 +34,7 @@ const ResultPage: React.FC = () => {
|
||||||
// 任务失败,停止轮询并设置错误
|
// 任务失败,停止轮询并设置错误
|
||||||
setError('任务执行失败');
|
setError('任务执行失败');
|
||||||
return;
|
return;
|
||||||
} else if (result.status === 'running' || result.status === 'pending' || result.status === 'pending_audit' || result.status === 'processing') {
|
} else if (result.status === 'running' || result.status === 'pending' || result.status === 'pending_audit') {
|
||||||
// 任务仍在进行中,继续轮询
|
// 任务仍在进行中,继续轮询
|
||||||
if (attempts < maxAttempts) {
|
if (attempts < maxAttempts) {
|
||||||
timerRef.current = setTimeout(poll, 1000);
|
timerRef.current = setTimeout(poll, 1000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue