Commit 7bb78f7a authored by 毛线's avatar 毛线

test

parent 21a977de
......@@ -136,7 +136,7 @@ export default {
const { id } = data
if (id) {
if (this.$route.name !== 'index-game-id') {
this.$router.replace(`/game/${id}`)
this.$router.replace(`/game?id=${id}`)
}
}
})
......
......@@ -43,7 +43,7 @@ export default {
method: 'post',
data,
}).then(({ data }) => {
this.$router.replace(`/game/${id}`)
this.$router.replace(`/game?id=${id}`)
})
},
}
......
......@@ -122,7 +122,7 @@ export default {
'deviceList',
]),
id() {
return this.$route.params.id
return this.$route.query.id
},
backgroundUrl() {
return this.deviceButtonPanel.backgroundUrl
......
......@@ -125,13 +125,11 @@ export default {
this.GetBaseInfo().then(() => {
const { redirectUrl, deviceId } = this.$route.query
if (deviceId) {
const params = {
id: deviceId,
}
const query = {
redirectUrl,
id: deviceId,
}
this.$router.replace({ path: `/game/${deviceId}`, params, query })
this.$router.replace({ path: `/game`, query })
} else {
this.$router.replace('/device')
}
......
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