Commit ed0ac113 by 放生的三文鱼

没有选择目录也有资源

parent a957d1c4
...@@ -543,7 +543,6 @@ const AssetManageTree = (props) => { ...@@ -543,7 +543,6 @@ const AssetManageTree = (props) => {
} }
const deleteDir = () => { const deleteDir = () => {
console.log('currentRightClickDir', currentRightClickDir)
if (currentRightClickDir.nodeId) { if (currentRightClickDir.nodeId) {
modal.confirm({ modal.confirm({
title: '您确定要删除该目录吗?', title: '您确定要删除该目录吗?',
...@@ -846,7 +845,6 @@ const AssetManageTree = (props) => { ...@@ -846,7 +845,6 @@ const AssetManageTree = (props) => {
'asset-manage-tree-asset-mount-reference': reference===AssetMountReference, 'asset-manage-tree-asset-mount-reference': reference===AssetMountReference,
}); });
console.log(currentRightClickDir)
return ( return (
<Card <Card
......
...@@ -303,11 +303,11 @@ const AssetTable = (props) => { ...@@ -303,11 +303,11 @@ const AssetTable = (props) => {
}, [timestamp]) }, [timestamp])
useDebounceEffect(() => { useDebounceEffect(() => {
if (reference !== AssetRecycleReference && nodeId) { if (reference !== AssetRecycleReference) {
getFilterElementsGroupThenGetDataAssets(); getFilterElementsGroupThenGetDataAssets();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeId], { wait: 300 }) }, [keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeId], { wait: 650 })
useEffect(() => { useEffect(() => {
if (reference === AssetRecycleReference) { if (reference === AssetRecycleReference) {
...@@ -412,7 +412,6 @@ const AssetTable = (props) => { ...@@ -412,7 +412,6 @@ const AssetTable = (props) => {
temp = {...asset,...temp} temp = {...asset,...temp}
data.push(temp) data.push(temp)
}); });
console.log('assets',assets);
return data return data
},[assets,columns]) },[assets,columns])
......
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