fix: 资源池配置校验修改

This commit is contained in:
CaptainB 2021-11-06 19:01:17 +08:00 committed by 刘瑞斌
parent 8ea35c710b
commit b62d3c03ac
2 changed files with 2 additions and 4 deletions

View File

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