Commit 1ebe9b44 by zhaochengxiang

资产

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