From bc654aad4655ca04e1bedcbf7f0338cde599e6a5 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Feb 2026 21:58:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(video-history):=20=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=97=B6=E4=BF=9D=E7=95=99=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E4=B8=8E=E6=8B=BC=E6=8E=A5=E6=88=90=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/public/js/video.js | 4 ++-- app/static/public/pages/video.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/public/js/video.js b/app/static/public/js/video.js index 067db99..b1a38f6 100644 --- a/app/static/public/js/video.js +++ b/app/static/public/js/video.js @@ -1462,7 +1462,7 @@ isRunning = true; startBtn.disabled = true; updateMeta(); - resetOutput(); + resetOutput(true); setStatus('connecting', '连接中'); let taskIds = []; @@ -1483,7 +1483,7 @@ } taskStates = new Map(); - previewCount = 0; + previewCount = videoStage ? videoStage.querySelectorAll('.video-item').length : 0; for (const taskId of taskIds) { const previewItem = initPreviewSlot(); setPreviewTitle(previewItem, buildHistoryTitle('generated', previewItem && previewItem.dataset ? previewItem.dataset.index : previewCount)); diff --git a/app/static/public/pages/video.html b/app/static/public/pages/video.html index 98d87ec..7f0c0dc 100644 --- a/app/static/public/pages/video.html +++ b/app/static/public/pages/video.html @@ -318,7 +318,7 @@ - +