Commit 1ebe9b44 by zhaochengxiang

资产

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