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

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

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