diff --git a/src/api/index.js b/src/api/index.js index bc021e0..f5290be 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -344,7 +344,7 @@ export function addBroadcast(data) { // 获取电伴热设备状态列表 export function getDbrIotDeviceList(dev_id) { return request({ - url: `/TestApi/device/${dev_id}`, + url: `/json/device/${dev_id}`, method: "get", }); } @@ -352,7 +352,7 @@ export function getDbrIotDeviceList(dev_id) { // 改变电伴热设备状态 export function changeDbrIotDeviceStatus(data) { return request({ - url: `/TestApi/device/${data.device_id}/control`, + url: `/json/device/${data.device_id}/control`, method: "post", data: { value: data.device_id,