优化离线镜像下载进度条的条件更新

This commit is contained in:
user123456
2025-06-12 16:35:37 +08:00
parent 543d17dd25
commit a4c5f0f535

View File

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