Commit b4e96440 authored by jtwu's avatar jtwu

修改bug

parent 6955c7e8
......@@ -30,16 +30,16 @@ class FailPopup extends React.Component {
//再玩一次
onReceive = () => {
ModalCtrl.closeModal();
// PageCtrl.changePage(HomePage);//回到首页
PageCtrl.changePage(HomePage);//回到首页
//重玩游戏
if (store.game) {
const d = {
targetStudy: gameStore.gameInfo.targetConfig.target1,
targetTravel: gameStore.gameInfo.targetConfig.target2,
time: gameStore.gameInfo.countdownSeconds
}
store.game.dispatchGlobalEvent("restartGame", d)
}
// if (store.game) {
// const d = {
// targetStudy: gameStore.gameInfo.targetConfig.target1,
// targetTravel: gameStore.gameInfo.targetConfig.target2,
// time: gameStore.gameInfo.countdownSeconds
// }
// store.game.dispatchGlobalEvent("restartGame", d)
// }
}
render() {
......
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