fix(api): 更新电伴热设备接口路径从TestApi到json
修改电伴热设备状态获取和控制接口的URL路径,从`/TestApi/device`变更为`/json/device`,以匹配后端API路由的更新
This commit is contained in:
parent
e1af0a6c49
commit
7bc821a71f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue