From 9605ec6485e43e0927e2f887a5e742e1c9347cf6 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Sat, 2 Apr 2022 15:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=A1=E9=AA=8CAPI=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/form.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/system/datasource/form.vue b/frontend/src/views/system/datasource/form.vue index d16f0d717d..cf19027613 100644 --- a/frontend/src/views/system/datasource/form.vue +++ b/frontend/src/views/system/datasource/form.vue @@ -187,7 +187,7 @@ @@ -464,7 +464,8 @@ export default { {label: this.$t('dataset.value') + '(' + this.$t('dataset.float') + ')', value: 3}, {label: this.$t('dataset.location'), value: 5} ], - height: 500 + height: 500, + disabledNext: false } }, @@ -736,16 +737,18 @@ export default { const data = JSON.parse(JSON.stringify(this.apiItem)) data.request = JSON.stringify(data.request) this.loading = true + this.disabledNext = true checkApiDatasource(data).then(res => { this.loading = false + this.disabledNext = false this.apiItem.status = 'Success' this.$success(i18n.t('commons.success')) this.active++ this.apiItem.fields = res.data.fields this.$refs.plxTable.reloadData(res.data.datas) }).catch(res => { - this.apiItem.fields = [] this.loading = false + this.disabledNext = false }) } else { this.apiItem.fields = []