Commit 10829650 by zhaochengxiang

资产属性关联

parent 467b4f52
...@@ -383,6 +383,10 @@ const AttributeRelationModal = (props) => { ...@@ -383,6 +383,10 @@ const AttributeRelationModal = (props) => {
} }
} }
const reset = () => {
setActiveKey(undefined);
}
return ( return (
<Modal <Modal
forceRender forceRender
...@@ -390,11 +394,13 @@ const AttributeRelationModal = (props) => { ...@@ -390,11 +394,13 @@ const AttributeRelationModal = (props) => {
visible={visible} visible={visible}
width={1000} width={1000}
onCancel={() => { onCancel={() => {
onCancel?.() reset();
onCancel?.();
}} }}
footer={ footer={
<Space> <Space>
<Button onClick={() => { <Button onClick={() => {
reset();
onCancel?.(); onCancel?.();
}}>取消</Button> }}>取消</Button>
</Space> </Space>
......
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