Commit d66952f1 authored by chenghong_tao's avatar chenghong_tao

fix 工作流状态

parent 5f904413
......@@ -55,7 +55,17 @@ watch(
break;
}
if (item.event === "workflow_finished") {
workflowStatus.value = 'success';
if (item?.data?.status === 'stopped') {
// 查看thinkingItems.value中是否还存在loading状态的item,如果存在,则设置为error
thinkingItems.value.forEach(i => {
if (i.status === 'loading') {
i.status = 'error';
}
})
workflowStatus.value = 'error';
} else {
workflowStatus.value = 'success';
}
}
// 特殊处理 iteration_started 和 iteration_completed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment