Commit 205ab73c by 放生的三文鱼

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

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