x
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user