Merge pull request #160 from zstar1003/dev
refactor(knowledgebase): 在批量任务解析中,增加各文件的状态更新
This commit is contained in:
commit
2bc8d5b818
|
@ -528,6 +528,10 @@ async function fetchBatchProgress() {
|
|||
batchProgress.value = res.data
|
||||
console.log("获取到批量进度:", batchProgress.value)
|
||||
|
||||
if (batchProgress.value.status === "running") {
|
||||
getDocumentList()
|
||||
}
|
||||
|
||||
// 检查任务是否已完成或失败
|
||||
if (batchProgress.value.status === "completed" || batchProgress.value.status === "failed") {
|
||||
stopBatchPolling() // 停止轮询
|
||||
|
|
Loading…
Reference in New Issue