Commit 9c123670 by zhaochengxiang

解决资产详情加载两次的问题

parent 04a29c1c
...@@ -82,13 +82,15 @@ const AddAssetModel = (props) => { ...@@ -82,13 +82,15 @@ const AddAssetModel = (props) => {
} }
bodyStyle={{ padding: '10px' }} bodyStyle={{ padding: '10px' }}
> >
<AssetAction {
visible && <AssetAction
form={form} form={form}
dirId={nodeId} dirId={nodeId}
action='add' action='add'
onMetadataChange={onMetadataChange} onMetadataChange={onMetadataChange}
onElementsChange={onElementsChange} onElementsChange={onElementsChange}
/> />
}
</Modal> </Modal>
); );
} }
......
...@@ -20,7 +20,9 @@ const AssetDetailDrawer = (props) => { ...@@ -20,7 +20,9 @@ const AssetDetailDrawer = (props) => {
onCancel && onCancel(); onCancel && onCancel();
}} }}
> >
<AssetAction form={form} id={id} dirId={dirId} action='detail' readOnly /> {
visible && <AssetAction form={form} id={id} dirId={dirId} action='detail' readOnly />
}
</Drawer> </Drawer>
) )
} }
......
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