Commit d0e77f9f by zhaochengxiang

资产自定义搜索问题

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