mirror of
https://github.com/dataease/dataease.git
synced 2026-06-13 01:01:20 +08:00
fix(数据集): 编辑sql时,设置主键改不了
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user