From 50efa4431eb80b7230123ee0ab649a8d7ff3de80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=92=A6?= <360013221@qq.com> Date: Mon, 29 Apr 2024 18:00:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=B1=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/Dialogs/SmartDevice/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue index 29feb81b..411f9696 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue @@ -122,12 +122,15 @@ export default { }, async created() { // if (!this.dialogData.iotDeviceId) this.dialogData.iotDeviceId = '10.0.36.146-1883'; - + if(this.dialogData){ + this.data = { + ...this.dialogData, + } + } let deviceInfo = await this.getDeviceInfo(); this.data = { - ...this.dialogData, roadName: null, - deviceStateLiteral: deviceInfo.data.formatValue.deviceState, + deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, }; // console.log(