Commit b4bde35a authored by 毛线's avatar 毛线

test

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