From 30cfa8e5c06ff29f2aff0dd11316d0ed98a1a072 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 25 Aug 2022 22:04:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0API=E6=95=B0=E6=8D=AE=E8=A1=A8=E6=8A=A5=E9=94=99?= 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 be710c70f0..386b5e7dcc 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -1034,7 +1034,7 @@ export default { } else { this.add_api_item = true; this.apiItem = JSON.parse(JSON.stringify(this.defaultApiItem)); - this.apiItem.serialNumber = this.form.apiConfiguration[this.form.apiConfiguration.length - 1].serialNumber + 1 + this.apiItem.serialNumber = this.form.apiConfiguration.length > 0 ? this.form.apiConfiguration[this.form.apiConfiguration.length - 1].serialNumber + 1 : 0 this.api_table_title = this.$t("datasource.add_api_table"); } this.active = 1;