Commit c4be8d2e by zhaochengxiang

bug fix

parent c1c7c8e8
......@@ -103,8 +103,6 @@ const MetaModelSelect = ({ value = {}, metaModelTreeData = [], onChange, ...rest
const AttributeRelationWithSourceModel = (props) => {
const { elements, sourceModel, metadataModelTreeData, activeKey, onChange } = props;
console.log('sourceModel', sourceModel)
const [ loading, setLoading ] = useState(false)
const [ confirmLoading, setConfirmLoading ] = useState(false);
......@@ -198,7 +196,7 @@ const AttributeRelationWithSourceModel = (props) => {
callback: data => {
setConfirmLoading(false);
message.success(sourceModel?'更新成功':'新增成功');
onChange?.('update', row.sourceModel);
onChange?.('update', sourceModel);
},
error: () => {
setConfirmLoading(false);
......
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