Commit 47bdfc94 authored by 田翔's avatar 田翔

fix: 代码优化

parent 825d5a58
{
"name": "panda-xform",
"version": "5.7.4",
"description": "5.7.4 获取的数据修改",
"version": "5.7.5",
"description": "5.7.5 获取的数据修改2",
"keywords": [
"panda-xform"
],
......
......@@ -171,7 +171,7 @@ const RelationForm = (props) => {
setDataSource(tableData)
onChange(`${tableData.length}`)
let relationForm = addons.getValue('relationForm') || { configs: [], data: [], table: [] }
addons.setValue('relationForm', { ...relationForm, table: [...relationForm.table, { config, dataSource: tableData }] })
addons.setValue('relationForm', { ...relationForm, table: [...relationForm.table, { config, dataSource: tableData, schema }] })
} else {
setDataSource([])
onChange(`${0}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment