This commit is contained in:
2026-03-14 02:16:59 +08:00
parent 67a930c74d
commit d079488952
+2
View File
@@ -862,6 +862,7 @@ const MoldInsightView = {
}; };
const startPolling = async (taskId) => { const startPolling = async (taskId) => {
console.log('[Polling] 开始轮询任务:', taskId);
state.polling = true; state.polling = true;
state.progress = 10; state.progress = 10;
let pollCount = 0; let pollCount = 0;
@@ -873,6 +874,7 @@ const MoldInsightView = {
const task = await apiRequest(`/api/status/${taskId}`, { method: 'POST' }); const task = await apiRequest(`/api/status/${taskId}`, { method: 'POST' });
state.currentTask = task; state.currentTask = task;
state.task = task;
if (task.status === "completed") { if (task.status === "completed") {
state.polling = false; state.polling = false;