Commit fcf575d5 authored by 毛线's avatar 毛线

自动进入设备

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