This commit is contained in:
hailin 2025-05-20 14:01:54 +08:00
parent df5bb6d4f9
commit d5df2dff49
1 changed files with 4 additions and 5 deletions

View File

@ -434,15 +434,14 @@ export function DetailPageHeader({ data }: { data: any }) {
const percentMatch = msg.match(/(\d+)%/); const percentMatch = msg.match(/(\d+)%/);
if (percentMatch && percentMatch[1]) { if (percentMatch && percentMatch[1]) {
setProgress(percentMatch[1] + "%"); setProgress(percentMatch[1] + "%");
}
if (match[1] === "100") { if (percentMatch[1] === "100") {
console.log("部署完成 ✅,重新拉取状态!"); console.log("部署完成 ✅,重新拉取状态!");
fetchDeployStatus(); // ✅ 直接重新请求后端最新状态 fetchDeployStatus();
} }
} }
setProgressBarColor("bg-blue-500"); // 保持默认颜色 setProgressBarColor("bg-blue-500"); // 保持默认颜色
}; };