revert: 回退错误提交

This reverts commit b62d3c03ac.
This commit is contained in:
CaptainB 2021-11-06 20:34:30 +08:00 committed by 刘瑞斌
parent 1af1fc18fd
commit c9acf439dd
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;