Commit 44b24646 authored by Maofei94's avatar Maofei94

fix: 抽屉隐藏

parent e360af3c
...@@ -177,7 +177,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -177,7 +177,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
url: this.state.curSelectedImg, url: this.state.curSelectedImg,
}, },
]; ];
this.props.onChange && this.props.onChange( maxLen === 1 ? fileList[0].url.replace('Web4/', '') : fileList.map(f => f.url.replace('Web4/', ''))); this.props.onChange && this.props.onChange( maxLen === 1 ? fileList[0].url.replace('Web4\\', '') : fileList.map(f => f.url.replace('Web4\\', '')));
this.setState({ fileList, wallModalVisible: false }); this.setState({ fileList, wallModalVisible: false });
}; };
......
...@@ -204,6 +204,7 @@ const WebConfigPage = props => { ...@@ -204,6 +204,7 @@ const WebConfigPage = props => {
message: successMsg, message: successMsg,
duration: 3, duration: 3,
}); });
setConfigVisible(false);
updateModuleTree(userMode || 'super'); updateModuleTree(userMode || 'super');
} else { } else {
notification.warning({ notification.warning({
......
...@@ -287,7 +287,6 @@ const MiniMenu = props => { ...@@ -287,7 +287,6 @@ const MiniMenu = props => {
}; };
// 树的拖动 // 树的拖动
const handleDrop = infos => { const handleDrop = infos => {
console.log(infos, 'newTree');
const { pos } = infos.node.props; const { pos } = infos.node.props;
const dragKey = infos.dragNode.props.eventKey; const dragKey = infos.dragNode.props.eventKey;
const dragPos = infos.dragNode.props.pos.split('-'); // 拖动的节点 const dragPos = infos.dragNode.props.pos.split('-'); // 拖动的节点
...@@ -302,7 +301,6 @@ const MiniMenu = props => { ...@@ -302,7 +301,6 @@ const MiniMenu = props => {
obj = { arr, id, parentId, index }; obj = { arr, id, parentId, index };
return { arr, id, parentId, index }; return { arr, id, parentId, index };
}); });
console.log(obj, 'obj');
let arrList = []; let arrList = [];
if ( if (
dragPos.length !== dropPos.length || dragPos.length !== dropPos.length ||
......
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