Commit 25c2d3a6 authored by 毛线's avatar 毛线

优化

parent 15e848b9
......@@ -43,8 +43,8 @@ export default {
url,
method: 'get',
}).then(({ data }) => {
const { deviceId, redirectUrl } = query
if (!data) { // 没有在其他设备
const { deviceId } = query
// 加入设备
this.$request({
url: '/api/gaming',
......@@ -60,7 +60,7 @@ export default {
const { id } = data
if (id) {
if (this.$route.name !== 'index-game') {
this.$router.replace(`/game?id=${id}`)
this.$router.replace(`/game?id=${id}&redirectUrl=${redirectUrl}`)
}
}
})
......
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