fix(数据集): 修复编辑现有sql数据集定时同步主键状态没有记录并且可编辑

This commit is contained in:
taojinlong 2024-01-31 14:31:40 +08:00
parent 9f63a4d582
commit 8295d4aa15

View File

@ -966,6 +966,10 @@ 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
this.param.keys = JSON.parse(table.info).keys
}
this.variables = JSON.parse(table.sqlVariableDetails)
}).finally(() => {
this.$emit('setSaveDisabled', false)