Commit 2e3f725f by zhaochengxiang

自定义资产目录允许删除

parent caccf644
...@@ -376,9 +376,7 @@ const AssetTree = (props) => { ...@@ -376,9 +376,7 @@ const AssetTree = (props) => {
} }
} }
const deleteDir = () => { const deleteDir = () => {
if (currentRightClickDir.type === 'custom') return;
if (currentRightClickDir.nodeId) { if (currentRightClickDir.nodeId) {
modal.confirm({ modal.confirm({
title: '提示', title: '提示',
...@@ -669,11 +667,9 @@ const AssetTree = (props) => { ...@@ -669,11 +667,9 @@ const AssetTree = (props) => {
<RcItem id="down" onClick={() => { moveNode(-1); }}> <RcItem id="down" onClick={() => { moveNode(-1); }}>
下移目录 下移目录
</RcItem> </RcItem>
{ <RcItem id="delete" onClick={deleteDir}>
(currentRightClickDir?.type!=='custom') && <RcItem id="delete" onClick={deleteDir}>
删除目录 删除目录
</RcItem> </RcItem>
}
</RcMenu> </RcMenu>
{contextHolder} {contextHolder}
......
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