diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 045795118e..88a276d401 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -593,13 +593,13 @@ export default { } for (let i = 0; i < this.threadGroups.length; i++) { let tg = this.threadGroups[i]; - if (tg.enabled === 'false' ) { - continue; - } tg.durationHours = tg.durationHours || 0; tg.durationMinutes = tg.durationMinutes || 0; tg.durationSeconds = tg.durationSeconds || 0; this.getDuration(tg); + if (tg.enabled === 'false' ) { + continue; + } if (!tg.threadNumber || !tg.duration || !tg.rampUpTime || !tg.step || !tg.iterateNum) { this.$warning(this.$t('load_test.pressure_config_params_is_empty')); diff --git a/frontend/src/business/components/track/plan/view/comonents/load/PerformanceLoadConfig.vue b/frontend/src/business/components/track/plan/view/comonents/load/PerformanceLoadConfig.vue index f8121cb1a4..0e0bb64b6c 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/PerformanceLoadConfig.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/PerformanceLoadConfig.vue @@ -594,13 +594,13 @@ export default { for (let i = 0; i < this.threadGroups.length; i++) { let tg = this.threadGroups[i]; - if (tg.enabled === 'false' ) { - continue; - } tg.durationHours = tg.durationHours || 0; tg.durationMinutes = tg.durationMinutes || 0; tg.durationSeconds = tg.durationSeconds || 0; this.getDuration(tg); + if (tg.enabled === 'false' ) { + continue; + } if (!tg.threadNumber || !tg.duration || !tg.rampUpTime || !tg.step || !tg.iterateNum) { this.$warning(this.$t('load_test.pressure_config_params_is_empty'));