Commit 800eceaf by zhaochengxiang

资产

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