diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue index 99d76608..54157d65 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue @@ -55,8 +55,11 @@ export default { 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(res => { + Promise.all([this.getAc()]).then(async (res) => { console.log('res', res) + if (res[0].code == 500) { + await this.getAc(); + } request({ url: `/business/device/properties/latest/${this.dialogData.iotDeviceId}`, method: "get",