fix: 创建excel、api数据源时,根据引擎类型决定是否可以设置主键

This commit is contained in:
taojinlong
2024-12-13 11:54:51 +08:00
committed by dataeaseShu
parent 554508ef9c
commit fb6af1875b
2 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -829,7 +829,7 @@ const handleCopy = async data => {
datasource.apiConfiguration[i].deTableName = ''
}
}
datasourceEditor.value.init(datasource)
datasourceEditor.value.init(datasource, null, null, isSurportSetKey.value)
})
}