Commit 1ebe9b44 by zhaochengxiang

资产

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