浏览代码

Merge branch 'master' of lizhiqi/yongxu-web into master

lizhiqi 1 年之前
父节点
当前提交
9ba1eef32c
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/pages/DataBoard/index.tsx

+ 3 - 2
src/pages/DataBoard/index.tsx

@@ -143,7 +143,7 @@ const DataBoard: React.FC = () => {
       if (res?.code === 0) {
         // 设备数
         setDeviceNum((data) => {
-          data.number = [res.data.device_count * 9];
+          data.number = [90];
           return { ...data };
         });
         // 故障设备数
@@ -165,7 +165,7 @@ const DataBoard: React.FC = () => {
         });
         // 设备数统计
         setDeviceStatistics((data) => {
-          data.number = [res.data.device_count * 9]; // 假数据 回头删
+          data.number = [90]; // 假数据 回头删
           return { ...data };
         });
       }
@@ -342,6 +342,7 @@ const DataBoard: React.FC = () => {
     return () => {
       clearInterval(userInterval.current);
       userInterval.current = null;
+      console.log('userInterval---', userInterval.current);
     };
   }, [userTypeValue]);