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 @@