Skip to content

Commit

Permalink
fix match
Browse files Browse the repository at this point in the history
  • Loading branch information
voocel committed Jul 5, 2020
1 parent 9bb386a commit b55f3d0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/views/hall/Hall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ export default {
break
}
case 'match': {
this.isMatching = true
break
}
case 'room_info': {
this.isMatching = false
// this.$router.push({
// path: '/room',
// query: { 'room_no': data.room_no }
// })
this.$router.push({
path: '/room',
query: { 'room_no': data.room_info.room_no }
})
break
}
default:
Expand All @@ -115,8 +119,6 @@ export default {
},
methods: {
match() {
console.log('match')
this.isMatching = true
const actions = {
cmd: 'ddz/match',
param: {
Expand All @@ -138,7 +140,6 @@ export default {
this.$socket.sendObj(actions)
},
enter() {
console.log('enter')
const actions = {
cmd: 'ddz/enterRoom',
param: {
Expand Down

0 comments on commit b55f3d0

Please sign in to comment.