From ca5ac89a24c6ace3fb7897b4b238b243059dcb43 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 18 十一月 2024 09:32:18 +0800
Subject: [PATCH] 1. word生成优化图片大小生成逻辑

---
 src/api/fysp/deviceApi.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/api/fysp/deviceApi.js b/src/api/fysp/deviceApi.js
index 8dc9dd1..fe67087 100644
--- a/src/api/fysp/deviceApi.js
+++ b/src/api/fysp/deviceApi.js
@@ -13,11 +13,17 @@
   // 鑾峰彇璁惧
   async fetchDevices(sceneId, deviceTypeId) {
     const params = `?sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`;
-    return await $fysp.get(`device${params}`).then((res) => res).then((res) => res.data);
+    return await $fysp
+      .get(`device${params}`)
+      .then((res) => res)
+      .then((res) => res.data);
   },
   // 鑾峰彇璁惧鐘舵�佷互鍙婅澶囪鎯�
-  async fetchDeviceStatus({deviceId, sceneId, deviceTypeId}) {
+  async 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 await $fysp
+      .get(`device/status${params}`)
+      .then((res) => res)
+      .then((res) => res.data);
   }
 };

--
Gitblit v1.9.3