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

fix: 代码优化

parent 825d5a58
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.4", "version": "5.7.5",
"description": "5.7.4 获取的数据修改", "description": "5.7.5 获取的数据修改2",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -171,7 +171,7 @@ const RelationForm = (props) => { ...@@ -171,7 +171,7 @@ const RelationForm = (props) => {
setDataSource(tableData) setDataSource(tableData)
onChange(`${tableData.length}`) onChange(`${tableData.length}`)
let relationForm = addons.getValue('relationForm') || { configs: [], data: [], table: [] } 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 { } else {
setDataSource([]) setDataSource([])
onChange(`${0}`) 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