From 7bc821a71f75a36fcc8533f44c635f52b404016c Mon Sep 17 00:00:00 2001 From: liangbin <15536829364@163.com> Date: Wed, 31 Dec 2025 17:46:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E6=9B=B4=E6=96=B0=E7=94=B5?= =?UTF-8?q?=E4=BC=B4=E7=83=AD=E8=AE=BE=E5=A4=87=E6=8E=A5=E5=8F=A3=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BB=8ETestApi=E5=88=B0json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改电伴热设备状态获取和控制接口的URL路径,从`/TestApi/device`变更为`/json/device`,以匹配后端API路由的更新 --- src/api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,