fix(接口自动化): 修复调试时环境判断

This commit is contained in:
shiziyuan9527 2021-02-25 15:04:20 +08:00
parent d2b183256f
commit dc8a850db8
1 changed files with 11 additions and 6 deletions

View File

@ -119,12 +119,17 @@ export default {
},
checkEnv() {
let sign = true;
this.data.forEach(dt => {
if (!dt.selectEnv) {
sign = false;
return;
}
})
if (this.data.length > 0) {
this.data.forEach(dt => {
if (!dt.selectEnv) {
sign = false;
return;
}
})
} else {
sign = false;
}
if (!sign) {
this.$warning("请为每个项目选择一个运行环境!");
return false;