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) {