Commit fcf575d5 authored by 毛线's avatar 毛线

自动进入设备

parent fe4f4321
......@@ -35,7 +35,7 @@ export default {
mounted() {
this.GetBaseInfo()
this.GetDeviceList()
// this.network().isGaming()
this.network().isGaming()
},
methods: {
...mapActions([
......@@ -49,9 +49,13 @@ export default {
this.$request({
url,
method: 'get',
}).then(({ id }) => {
}).then(({ data }) => {
if (!data) {
return
}
const { id } = data
if (id) {
// this.$router.replace(`/game/${id}`)
this.$router.replace(`/game/${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