From a4c5f0f53583029239b2aa1ba81cffb856e5e063 Mon Sep 17 00:00:00 2001 From: user123456 Date: Thu, 12 Jun 2025 16:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A6=BB=E7=BA=BF=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E4=B8=8B=E8=BD=BD=E8=BF=9B=E5=BA=A6=E6=9D=A1=E7=9A=84?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/skopeo.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/public/skopeo.html b/src/public/skopeo.html index 49563d2..457390b 100644 --- a/src/public/skopeo.html +++ b/src/public/skopeo.html @@ -675,7 +675,7 @@ text.textContent = '失败'; } else if (status === 'completed') { bar.style.backgroundColor = '#4CAF50'; - text.textContent = '完成'; + text.textContent = '打包中'; } } } @@ -714,6 +714,13 @@ }); if (data.status === 'completed') { + // 任务完成时,将所有"等待打包"状态更新为"完成" + document.querySelectorAll('.image-progress-text').forEach(function(textEl) { + if (textEl.textContent === '等待打包') { + textEl.textContent = '完成'; + } + }); + getFileButton.style.display = 'inline-block'; if (websocket) {