Commit e0c7f11e authored by 前端-许佳敏's avatar 前端-许佳敏

fix: v1版本

parent 9b974642
...@@ -13,6 +13,7 @@ export interface OrgModalProps { ...@@ -13,6 +13,7 @@ export interface OrgModalProps {
selectKeys: any[], selectKeys: any[],
onSuccess(selectKeys: any[]), onSuccess(selectKeys: any[]),
onCancel(), onCancel(),
modalRef: any,
} }
...@@ -30,13 +31,14 @@ const OrgModal:React.FC<OrgModalProps> = (props) => { ...@@ -30,13 +31,14 @@ const OrgModal:React.FC<OrgModalProps> = (props) => {
useEffect(() => { useEffect(() => {
syncTreeActions.setSelectKeys(selectKeys) syncTreeActions.setSelectKeys(selectKeys)
}, [selectKeys]) }, [selectKeys, syncTreeActions])
return ( return (
<Drawer <Drawer
visible={visible} visible={visible}
closable={false} closable={false}
placement='right' placement='right'
width={600} width={600}
forceRender
> >
<TabTree <TabTree
fetchData = {params => fetchOrgsTreeData()} fetchData = {params => fetchOrgsTreeData()}
......
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