fix(api): 更新电伴热设备接口路径从TestApi到json

修改电伴热设备状态获取和控制接口的URL路径,从`/TestApi/device`变更为`/json/device`,以匹配后端API路由的更新
This commit is contained in:
liangbin 2025-12-31 17:46:18 +08:00
parent e1af0a6c49
commit 7bc821a71f
1 changed files with 2 additions and 2 deletions

View File

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