|
|
@ -50,14 +50,15 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
async created() { |
|
|
|
// this.devicesList = devicesFormList; |
|
|
|
this.devicesList = []; |
|
|
|
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()]).then(async (res) => { |
|
|
|
|
|
|
|
const res = await this.getAc(); |
|
|
|
console.log('res', res) |
|
|
|
if (res[0].code == 500) { |
|
|
|
if (res.code == 500) { |
|
|
|
await this.getAc(); |
|
|
|
} |
|
|
|
request({ |
|
|
@ -78,8 +79,6 @@ export default { |
|
|
|
}); |
|
|
|
this.devicesList = devs; |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getAc() { |
|
|
|