From 18575d1c551265a26198228a945a0d9513cab89f Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 25 Jul 2026 21:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=9C=89=E5=90=8C=E6=AD=A5=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=B6=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9D=A1=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=BC=B9=E9=98=BB?= =?UTF-8?q?=E5=A1=9E=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/admin.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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);