This commit is contained in:
parent
1f15187e10
commit
df5bb6d4f9
|
|
@ -431,9 +431,10 @@ export function DetailPageHeader({ data }: { data: any }) {
|
|||
console.log("收到进度信息:", msg);
|
||||
setStatusText(msg);
|
||||
|
||||
const match = msg.match(/进度[::]?\s*(\d+)%/);
|
||||
if (match && match[1]) {
|
||||
setProgress(match[1] + "%");
|
||||
const percentMatch = msg.match(/(\d+)%/);
|
||||
if (percentMatch && percentMatch[1]) {
|
||||
setProgress(percentMatch[1] + "%");
|
||||
}
|
||||
|
||||
if (match[1] === "100") {
|
||||
console.log("部署完成 ✅,重新拉取状态!");
|
||||
|
|
|
|||
Loading…
Reference in New Issue