diff --git a/ft-app/app/templates/admin.html b/ft-app/app/templates/admin.html index dd0b236..7d22bc3 100644 --- a/ft-app/app/templates/admin.html +++ b/ft-app/app/templates/admin.html @@ -267,11 +267,9 @@ function startSync(url) { .then(function(r) { return r.json(); }) .then(function(data) { if (!data.ok) { - document.getElementById('sync-progress-label').textContent = '已有同步任务进行中,请稍后再试'; - document.getElementById('sync-progress-pct').textContent = ''; - document.getElementById('sync-progress-bar').style.width = '0%'; - document.getElementById('sync-progress').insertAdjacentHTML('beforeend', - ''); + // Another sync is already running — just show its progress + syncTimer = setInterval(pollProgress, 500); + pollProgress(); return; } syncTimer = setInterval(pollProgress, 500);