Commit 880d6544 authored by 皮倩雯's avatar 皮倩雯

修改web配置删除功能完成后页面展示状态

parent 8e550088
Pipeline #44252 skipped with stages
......@@ -117,6 +117,7 @@ const MiniMenu = props => {
const {
node: { menuType },
} = treeNode;
console.log(menuType);
setCurMenuType(menuType);
switch (menuType) {
case 'Web4MenuGroup':
......@@ -198,10 +199,14 @@ const MiniMenu = props => {
if (res.code === 0) {
setDelVisible(false);
// setFlag(flag + 1);
getTree();
setMenuID(keepId.menuID);
setNodeType(2);
setNodeObj(keepId);
if (nodeObj.menuID == menuID) {
getTree();
setMenuID(keepId.menuID);
setNodeType(2);
setNodeObj(keepId);
} else {
getTree();
}
// updateMenuTree('delete', nodeObj);
notification.success({
message: '提示',
......
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