mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 创建excel、api数据源时,根据引擎类型决定是否可以设置主键
This commit is contained in:
@@ -414,7 +414,13 @@ const addApiItem = item => {
|
||||
apiItem.serialNumber = serialNumber1 + serialNumber2
|
||||
}
|
||||
nextTick(() => {
|
||||
editApiItem.value.initApiItem(apiItem, form.value, activeName.value, editItem)
|
||||
editApiItem.value.initApiItem(
|
||||
apiItem,
|
||||
form.value,
|
||||
activeName.value,
|
||||
editItem,
|
||||
isSurportSetKey.value
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -829,7 +829,7 @@ const handleCopy = async data => {
|
||||
datasource.apiConfiguration[i].deTableName = ''
|
||||
}
|
||||
}
|
||||
datasourceEditor.value.init(datasource)
|
||||
datasourceEditor.value.init(datasource, null, null, isSurportSetKey.value)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user