Commit c4be8d2e by zhaochengxiang

bug fix

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