提交更新

This commit is contained in:
super
2026-05-02 09:28:26 +08:00
parent aece8123c3
commit 3ce66a59ee
13 changed files with 380 additions and 33 deletions

View File

@@ -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())
}
}