fix(数据源): 校验 API 数据源字段重复

This commit is contained in:
taojinlong 2022-07-26 18:22:59 +08:00
parent 052bf58292
commit f08a0b9b62

View File

@ -980,7 +980,7 @@ export default {
}
for (var i = 0; i < this.apiItem.fields.length -1; i++) {
for (var j = 1; j < this.apiItem.fields.length; j++) {
for (var j = i+1; j < this.apiItem.fields.length; j++) {
if(this.apiItem.fields[i].name === this.apiItem.fields[j].name){
this.$message.error(this.apiItem.fields[i].name + ', ' + i18n.t('datasource.has_repeat_field_name'))
return