|
@ -55,8 +55,11 @@ export default { |
|
|
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(res => { |
|
|
Promise.all([this.getAc()]).then(async (res) => { |
|
|
console.log('res', res) |
|
|
console.log('res', res) |
|
|
|
|
|
if (res[0].code == 500) { |
|
|
|
|
|
await this.getAc(); |
|
|
|
|
|
} |
|
|
request({ |
|
|
request({ |
|
|
url: `/business/device/properties/latest/${this.dialogData.iotDeviceId}`, |
|
|
url: `/business/device/properties/latest/${this.dialogData.iotDeviceId}`, |
|
|
method: "get", |
|
|
method: "get", |
|
|