From 344aca268d0436096489145d1295bd14f4409446 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 7 Jul 2021 16:39:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=80=E5=A4=9A=E4=B8=AA=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E7=BC=96=E8=BE=91=E5=9C=BA=E6=99=AF=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/EditApiScenario.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 9ac7e728be..e2543fc71a 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1272,7 +1272,9 @@ export default { let originWidth = debugHeader.clientWidth; if (stepInfo.getBoundingClientRect().top <= 178) { this.isTop = true; - debugHeader.style.width = originWidth + 'px'; + if (originWidth > 0) { + debugHeader.style.width = originWidth + 'px'; + } } else { this.isTop = false; }