Commit b4bde35a authored by 毛线's avatar 毛线

test

parent 7bb78f7a
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
const { name } = this.$route const { name } = this.$route
console.log('quit', name) console.log('quit', name)
switch (name) { switch (name) {
case 'index-game-id': // 如果是游戏页面 case 'index-game': // 如果是游戏页面
this.$refs.outGame.show() this.$refs.outGame.show()
break break
case 'index-device': case 'index-device':
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
} }
}, },
quitGame() { quitGame() {
const { id } = this.$route.params const { id } = this.$route.query
const params = { const params = {
deviceId: id, deviceId: id,
} }
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
} }
const { id } = data const { id } = data
if (id) { if (id) {
if (this.$route.name !== 'index-game-id') { if (this.$route.name !== 'index-game') {
this.$router.replace(`/game?id=${id}`) this.$router.replace(`/game?id=${id}`)
} }
} }
......
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