Commit 6f2caee2 authored by haiyoucuv's avatar haiyoucuv

11

parent 076ecc5d
......@@ -11,6 +11,7 @@ class ExitPop extends Component {
closeModal = () => {
ModalCtrl.closeModal();
this.props.cancel && this.props.cancel();
}
backHome = () => {
......
......@@ -102,7 +102,12 @@ class GamePage extends React.Component<any, any> {
};
clickBack = () => {
ModalCtrl.showModal(ExitPop)
this.game.setPauseCd(true);
ModalCtrl.showModal(ExitPop, {
cancel: () => {
this.game.setPauseCd(false);
}
})
// PageCtrl.backPage();
}
......
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