Skip to content

Commit

Permalink
fix popover
Browse files Browse the repository at this point in the history
  • Loading branch information
lihongxun945 committed Jul 11, 2018
1 parent 7af3e1e commit d08b0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export default {
this.$store.dispatch(SET_FIVES, win(this.board))
this.$store.dispatch(SET_STATUS, STATUS.LOCKED)
this.showBigText(this.$t('you lose'), this.end)
} else if (this.lastScore < SCORE.FIVE/2) {
} else if (step <= 6 && this.lastScore < SCORE.FIVE/2) {
this.$refs.winPop.open()
}
} else if (score <= - SCORE.FIVE/2) {
if (step <= 1) {
this.$store.dispatch(SET_FIVES, win(this.board))
this.$store.dispatch(SET_STATUS, STATUS.LOCKED)
this.showBigText(this.$t('you win'), this.end)
} else if (this.lastScore < SCORE.FIVE/2) {
} else if (step <= 6 && this.lastScore > - SCORE.FIVE/2) {
this.$refs.losePop.open()
}
} else {
Expand Down

0 comments on commit d08b0fd

Please sign in to comment.