From c25060ff2bdeaacf84a3dd7cfaaec1aac65b6d46 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Wed, 2 Nov 2022 15:35:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E9=9B=86=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BF=A1=E6=81=AF=20=E5=8A=A0=E6=9D=83=E9=99=90=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/dataset/data/UpdateInfo.vue | 4 +++- frontend/src/views/system/datasource/DsForm.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/dataset/data/UpdateInfo.vue b/frontend/src/views/dataset/data/UpdateInfo.vue index c9d90257ce..a3aa9a2da0 100644 --- a/frontend/src/views/dataset/data/UpdateInfo.vue +++ b/frontend/src/views/dataset/data/UpdateInfo.vue @@ -3,10 +3,12 @@ {{ $t('dataset.add_task') }} +   { this.incrementalConfig = response.data - if (this.incrementalConfig.incrementalAdd.length === 0 && this.incrementalConfig.incrementalDelete.length === 0) { + if (this.incrementalConfig?.incrementalAdd?.length === 0 && this.incrementalConfig?.incrementalDelete?.length === 0) { this.incrementalUpdateType = 'incrementalAdd' this.sql = '' return diff --git a/frontend/src/views/system/datasource/DsForm.vue b/frontend/src/views/system/datasource/DsForm.vue index cb63fcee5e..a3d006e8c2 100644 --- a/frontend/src/views/system/datasource/DsForm.vue +++ b/frontend/src/views/system/datasource/DsForm.vue @@ -692,7 +692,7 @@ export default { return newArr }, setType() { - this.form.type = this.params.type + this.$set(this.form, 'type', this.params.type) this.form.configuration = { initialPoolSize: 5, extraParams: '',