优化离线镜像下载进度条的条件更新
This commit is contained in:
@@ -675,7 +675,7 @@
|
|||||||
text.textContent = '失败';
|
text.textContent = '失败';
|
||||||
} else if (status === 'completed') {
|
} else if (status === 'completed') {
|
||||||
bar.style.backgroundColor = '#4CAF50';
|
bar.style.backgroundColor = '#4CAF50';
|
||||||
text.textContent = '完成';
|
text.textContent = '打包中';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -714,6 +714,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (data.status === 'completed') {
|
if (data.status === 'completed') {
|
||||||
|
// 任务完成时,将所有"等待打包"状态更新为"完成"
|
||||||
|
document.querySelectorAll('.image-progress-text').forEach(function(textEl) {
|
||||||
|
if (textEl.textContent === '等待打包') {
|
||||||
|
textEl.textContent = '完成';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
getFileButton.style.display = 'inline-block';
|
getFileButton.style.display = 'inline-block';
|
||||||
|
|
||||||
if (websocket) {
|
if (websocket) {
|
||||||
|
|||||||
Reference in New Issue
Block a user