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