diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 52a646a657..a4186764a0 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -748,7 +748,11 @@ export default { return tg.duration; }, getRatios(tg) { - return tg.resourceNodes.map(node => node.ratio); + if (tg.resourceNodes) { + return tg.resourceNodes.map(node => node.ratio); + } else { + return []; + } }, convertProperty() { /// todo:下面4个属性是jmeter ConcurrencyThreadGroup plugin的属性,这种硬编码不太好吧,在哪能转换这种属性?