|
@ -50,14 +50,15 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
async created() { |
|
|
// this.devicesList = devicesFormList; |
|
|
// this.devicesList = devicesFormList; |
|
|
this.devicesList = []; |
|
|
this.devicesList = []; |
|
|
let devs = []; |
|
|
let devs = []; |
|
|
// Promise.all([this.getAc('A1'), this.getAc('A2'), this.getAc('A3'), this.getAc('A4'), this.getAc('A5'), this.getAc('A6')]).then(res => { |
|
|
// Promise.all([this.getAc('A1'), this.getAc('A2'), this.getAc('A3'), this.getAc('A4'), this.getAc('A5'), this.getAc('A6')]).then(res => { |
|
|
Promise.all([this.getAc()]).then(async (res) => { |
|
|
|
|
|
|
|
|
const res = await this.getAc(); |
|
|
console.log('res', res) |
|
|
console.log('res', res) |
|
|
if (res[0].code == 500) { |
|
|
if (res.code == 500) { |
|
|
await this.getAc(); |
|
|
await this.getAc(); |
|
|
} |
|
|
} |
|
|
request({ |
|
|
request({ |
|
@ -78,8 +79,6 @@ export default { |
|
|
}); |
|
|
}); |
|
|
this.devicesList = devs; |
|
|
this.devicesList = devs; |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getAc() { |
|
|
getAc() { |
|
|