Commit a37e9d06 by maolipeng

Merge branch 'feature/zhujian/0726/qwLiving' of…

Merge branch 'feature/zhujian/0726/qwLiving' of ssh://xmgit.ixm5.cn:10022/xiaomai-cloud-class/xiaomai-cloud-class-web into feature/zhujian/0726/qwLiving
parents 21b2bcc0 c1eda7cc
...@@ -10,7 +10,13 @@ function Main(props) { ...@@ -10,7 +10,13 @@ function Main(props) {
console.log("menuType", menuType); console.log("menuType", menuType);
useEffect(() => { useEffect(() => {
Bus.bind('showRouteChangeModal', () => { Bus.bind('showRouteChangeModal',showModal )
return ()=>{
Bus.unbind('showRouteChangeModal',showModal)
}
}, [])
function showModal(){
Modal.confirm({ Modal.confirm({
title: '确定要返回吗?', title: '确定要返回吗?',
content: '返回后,本次编辑的内容将不被保存', content: '返回后,本次编辑的内容将不被保存',
...@@ -22,8 +28,7 @@ function Main(props) { ...@@ -22,8 +28,7 @@ function Main(props) {
}, },
}); });
}) }
}, [])
return ( return (
......
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