Commit 205ab73c by 放生的三文鱼

不选择的时候资产全部展示

parent 7396120a
...@@ -636,7 +636,7 @@ const AssetManageTree = (props) => { ...@@ -636,7 +636,7 @@ const AssetManageTree = (props) => {
const onTreeSelect = (keys, { node }) => { const onTreeSelect = (keys, { node }) => {
if ((keys||[]).length === 0) { if ((keys||[]).length === 0) {
setCurrentDirId(); setCurrentDirId();
onSelect?.('', '', null, false); onSelect?.(undefined, '', null, false);
return; return;
} }
......
...@@ -303,7 +303,9 @@ const AssetTable = (props) => { ...@@ -303,7 +303,9 @@ const AssetTable = (props) => {
}, [timestamp]) }, [timestamp])
useDebounceEffect(() => { useDebounceEffect(() => {
if (reference !== AssetRecycleReference&&nodeId) { if (reference !== AssetRecycleReference&&(nodeId||nodeId===undefined)) {
console.log('nodeid',nodeId);
getFilterElementsGroupThenGetDataAssets(); getFilterElementsGroupThenGetDataAssets();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
......
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