Commit 800eceaf by zhaochengxiang

资产

parent 1ebe9b44
...@@ -69,7 +69,6 @@ const AssetTree = (props) => { ...@@ -69,7 +69,6 @@ const AssetTree = (props) => {
}) })
useEffect(() => { useEffect(() => {
if (reference !== AssetMountReference) {
if ((id||'') !== '') { if ((id||'') !== '') {
getDataAssetLocationThenGetTreeData(); getDataAssetLocationThenGetTreeData();
} else if ((did||'') !== '') { } else if ((did||'') !== '') {
...@@ -77,17 +76,10 @@ const AssetTree = (props) => { ...@@ -77,17 +76,10 @@ const AssetTree = (props) => {
} else { } else {
getAllDirectoryAsTree(true); 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