From d256d70d92faaa8a21739febba57da7656d8b38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=B5=A9=E6=B5=A9?= <1036606149@qq.com> Date: Sun, 10 Nov 2024 20:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=91IOT=EF=BC=9A=E8=AE=BE=E5=A4=87=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/index.ts | 4 ++-- src/views/iot/device/detail/DeviceDetailsModel.vue | 9 +++++---- src/views/iot/device/detail/index.vue | 14 ++++++-------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index 5f788ec9..4f61d56d 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -93,11 +93,11 @@ export const DeviceApi = { // 获取设备属性最新数据 getDevicePropertiesLatestData: async (params: any) => { - return await request.get({ url: `/iot/device/data/latest-data`, params }) + return await request.get({ url: `/iot/device/data/latest`, params }) }, // 获取设备属性历史数据 getDevicePropertiesHistoryData: async (params: any) => { - return await request.get({ url: `/iot/device/data/history-data`, params }) + return await request.get({ url: `/iot/device/data/history`, params }) } } diff --git a/src/views/iot/device/detail/DeviceDetailsModel.vue b/src/views/iot/device/detail/DeviceDetailsModel.vue index 40c1a89a..9af72bb1 100644 --- a/src/views/iot/device/detail/DeviceDetailsModel.vue +++ b/src/views/iot/device/detail/DeviceDetailsModel.vue @@ -1,7 +1,7 @@