Commit 1ebe9b44 by zhaochengxiang

资产

parent 42136c29
...@@ -69,17 +69,25 @@ const AssetTree = (props) => { ...@@ -69,17 +69,25 @@ const AssetTree = (props) => {
}) })
useEffect(() => { useEffect(() => {
if ((id||'') !== '') { if (reference !== AssetMountReference) {
getDataAssetLocationThenGetTreeData(); if ((id||'') !== '') {
} else if ((did||'') !== '') { getDataAssetLocationThenGetTreeData();
getAllDirectoryAsTree(true, did); } else if ((did||'') !== '') {
} else { getAllDirectoryAsTree(true, did);
getAllDirectoryAsTree(true); } else {
getAllDirectoryAsTree(true);
}
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [env, timestamp]) }, [env, timestamp])
useEffect(() => { useEffect(() => {
if (reference === AssetMountReference) {
getAllDirectoryAsTree(true);
}
}, [timestamp])
useEffect(() => {
if ((tableId||'') !== '') { if ((tableId||'') !== '') {
getTableDirIds(); getTableDirIds();
} }
......
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