From d1ce79c837650689ab47bbf587d076743fcb3a5f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 19 五月 2025 17:25:38 +0800 Subject: [PATCH] 1. 问题审核界面新增场景信息编辑入口 2. 问题审核界面场景图片查询新增图片类型修改功能 --- src/api/fysp/deviceApi.js | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/api/fysp/deviceApi.js b/src/api/fysp/deviceApi.js index 8dc9dd1..f95c919 100644 --- a/src/api/fysp/deviceApi.js +++ b/src/api/fysp/deviceApi.js @@ -11,13 +11,19 @@ .then((res) => res.data); }, // 鑾峰彇璁惧 - async fetchDevices(sceneId, deviceTypeId) { + fetchDevices(sceneId, deviceTypeId) { const params = `?sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`; - return await $fysp.get(`device${params}`).then((res) => res).then((res) => res.data); + return $fysp + .get(`device${params}`) + .then((res) => res) + .then((res) => res.data); }, // 鑾峰彇璁惧鐘舵�佷互鍙婅澶囪鎯� - async fetchDeviceStatus({deviceId, sceneId, deviceTypeId}) { + fetchDeviceStatus({ deviceId, sceneId, deviceTypeId }) { const params = `?deviceId=${deviceId}&sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`; - return await $fysp.get(`device/status${params}`).then((res) => res).then((res) => res.data); + return $fysp + .get(`device/status${params}`) + .then((res) => res) + .then((res) => res.data); } }; -- Gitblit v1.9.3