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; }