Commit 2e3f725f by zhaochengxiang

自定义资产目录允许删除

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