dev_forum
hjm 5 years ago
parent 376c1f96cd
commit cfddbc2899

@ -571,6 +571,9 @@ pop_box_new(htmlvalue, 480, 182);
} }
closeTaskResultLayer() { closeTaskResultLayer() {
this.setState({ this.setState({
game: (this.state.game.status == 2 ? update(this.state.game, {
isPassThrough: { $set: true },
}) : this.state.game) ,
currentGamePassed: false currentGamePassed: false
}) })
} }
@ -581,7 +584,7 @@ pop_box_new(htmlvalue, 480, 182);
let currentGamePassed = false let currentGamePassed = false
if (challenge_chooses_count === choose_correct_num) { if (challenge_chooses_count === choose_correct_num) {
game.status = 2; game.status = 2;
game.isPassThrough = true // game.isPassThrough = true
game.next_game = next_game; game.next_game = next_game;
currentGamePassed = true; currentGamePassed = true;
@ -734,7 +737,7 @@ pop_box_new(htmlvalue, 480, 182);
compileSuccess && this.language_display(response); compileSuccess && this.language_display(response);
if (currentGamePassed) { if (currentGamePassed) {
game.status = 2; game.status = 2;
game.isPassThrough = true // game.isPassThrough = true
game.next_game = next_game; game.next_game = next_game;
} else { } else {
this.showDialog({ this.showDialog({

Loading…
Cancel
Save