From f08a0b9b62d6e94cad2a345a90bb7dead5fa8199 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 26 Jul 2022 18:22:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E6=BA=90):=20=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=20API=20=E6=95=B0=E6=8D=AE=E6=BA=90=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/DsConfiguration.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/system/datasource/DsConfiguration.vue b/frontend/src/views/system/datasource/DsConfiguration.vue index e7d3335436..12908135da 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -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