Commit cad4cb27 by 放生的三文鱼

删除自定义目录增加currentDirIsCustom字段

parent 4ae33323
...@@ -535,7 +535,11 @@ const AssetManageTree = (props) => { ...@@ -535,7 +535,11 @@ const AssetManageTree = (props) => {
if (able === 'true') { if (able === 'true') {
dispatch({ dispatch({
type: 'assetmanage.deleteDirectory', type: 'assetmanage.deleteDirectory',
payload: {data: [ currentRightClickDir.nodeId ]}, payload: {data: [ currentRightClickDir.nodeId ],
params: {
currentDirIsCustom: currentRightClickDir.type==='custom'
}
},
callback: () => { callback: () => {
showMessage("success","删除成功"); showMessage("success","删除成功");
getAllDirectoryAsTree(true, (currentRightClickDir.nodeId===currentDirId)?'':currentDirId); getAllDirectoryAsTree(true, (currentRightClickDir.nodeId===currentDirId)?'':currentDirId);
......
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