Commit 2a5591bb by zhaochengxiang

资产目录导入清空

parent ba975885
...@@ -14,8 +14,14 @@ const ImportDirectory = (props) => { ...@@ -14,8 +14,14 @@ const ImportDirectory = (props) => {
useEffect(() => { useEffect(() => {
if (visible && (dirId||'')!=='') { if(visible) {
getDirectory();
form.resetFields();
setFileList([]);
if ((dirId||'')!=='') {
getDirectory();
}
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [ visible, dirId ]) }, [ visible, dirId ])
......
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