From b5aa38d99f62508009eda1069a9173802e3f48cc Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 1 Feb 2024 13:36:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E7=BC=96?= =?UTF-8?q?=E8=BE=91sql=E6=97=B6,=E8=AE=BE=E7=BD=AE=E4=B8=BB=E9=94=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/dataset/add/AddSQL.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/views/dataset/add/AddSQL.vue b/core/frontend/src/views/dataset/add/AddSQL.vue index 22eb2b493c..2b7dc235cc 100644 --- a/core/frontend/src/views/dataset/add/AddSQL.vue +++ b/core/frontend/src/views/dataset/add/AddSQL.vue @@ -966,8 +966,8 @@ export default { table.info.replace(/\n/g, '\\n').replace(/\r/g, '\\r') ).sql } - if(JSON.parse(table.info).hasOwnProperty("setKey")){ - this.param.setKey = JSON.parse(table.info).setKey + if (JSON.parse(table.info).hasOwnProperty("setKey")) { + this.$set(this.param, 'setKey', JSON.parse(table.info).setKey) this.param.keys = JSON.parse(table.info).keys } this.variables = JSON.parse(table.sqlVariableDetails)