提交更新
This commit is contained in:
@@ -331,8 +331,6 @@ async function parseFiles() {
|
||||
}]
|
||||
: [])
|
||||
queuePayloadText.value = ''
|
||||
await loadDashboard()
|
||||
await loadHistory({ force: true })
|
||||
ElMessage.success(`解析完成,共 ${res.groupCount || 0} 组 / ${res.acceptedRows} 条`)
|
||||
} catch (e) {
|
||||
ElMessage.error(e instanceof Error ? e.message : '解析失败')
|
||||
@@ -465,7 +463,7 @@ function scheduleNextPoll(immediate = false) {
|
||||
if (disposed) return
|
||||
if (!pollingTaskIds.value.length && !pendingFileTaskIds.value.length) return
|
||||
await refreshTaskProgress()
|
||||
if (!disposed && (pollingTaskIds.value.length || pendingFileTaskIds.value.length)) {
|
||||
if (!disposed && pollTimer.value == null && (pollingTaskIds.value.length || pendingFileTaskIds.value.length)) {
|
||||
pollTimer.value = timers.setTimeout('task-poll', run, getTaskPollIntervalMs())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user