Commit d0e77f9f by zhaochengxiang

资产自定义搜索问题

parent 0f273a7c
...@@ -25,7 +25,6 @@ const CustomDirectoryModal = (props) => { ...@@ -25,7 +25,6 @@ const CustomDirectoryModal = (props) => {
useEffect(() => { useEffect(() => {
if (visible) { if (visible) {
reset();
getAllElementsThenGetCurrentDirectory(); getAllElementsThenGetCurrentDirectory();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
...@@ -133,6 +132,7 @@ const CustomDirectoryModal = (props) => { ...@@ -133,6 +132,7 @@ const CustomDirectoryModal = (props) => {
payload, payload,
callback: () => { callback: () => {
setConfirmLoading(false); setConfirmLoading(false);
reset();
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
...@@ -195,7 +195,10 @@ const CustomDirectoryModal = (props) => { ...@@ -195,7 +195,10 @@ const CustomDirectoryModal = (props) => {
visible={visible} visible={visible}
width={800} width={800}
confirmLoading={confirmLoading} confirmLoading={confirmLoading}
onCancel={() => { onCancel && onCancel() }} onCancel={() => {
reset();
onCancel && onCancel()
}}
onOk={onOk} onOk={onOk}
> >
<Row gutter={30}> <Row gutter={30}>
......
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