revert: 回退错误提交

This reverts commit fd5108666c.
This commit is contained in:
CaptainB 2021-11-06 20:33:17 +08:00 committed by 刘瑞斌
parent db137aa561
commit 6ccb3b79e9
2 changed files with 4 additions and 2 deletions

View File

@ -600,7 +600,8 @@ export default {
if (tg.enabled === 'false') {
continue;
}
if (!tg.threadNumber || !tg.rampUpTime || !tg.step || !tg.iterateNum) {
if (!tg.threadNumber || !tg.duration
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
this.$emit('changeActive', '1');
return false;

View File

@ -601,7 +601,8 @@ export default {
if (tg.enabled === 'false' ) {
continue;
}
if (!tg.threadNumber || !tg.rampUpTime || !tg.step || !tg.iterateNum) {
if (!tg.threadNumber || !tg.duration
|| !tg.rampUpTime || !tg.step || !tg.iterateNum) {
this.$warning(this.$t('load_test.pressure_config_params_is_empty'));
this.$emit('changeActive', '1');
return false;