Commit 2a5591bb by zhaochengxiang

资产目录导入清空

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