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

test

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