fix(数据集): 编辑sql时,设置主键改不了

This commit is contained in:
dataeaseShu 2024-02-01 13:36:26 +08:00
parent c9eb50826c
commit b5aa38d99f

View File

@ -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)