shylock пре 1 година
родитељ
комит
3420821967
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 2 2
      config/proxy.ts
  2. 3 2
      src/pages/DataBoard/index.tsx

+ 2 - 2
config/proxy.ts

@@ -18,8 +18,8 @@ export default {
     },
     '/web/': {
       // 要代理的地址
-      target: 'http://192.168.0.224:8199', // 开发
-      // target: 'https://app.yongxulvjian.com', // 生产
+      // target: 'http://192.168.0.224:8199', // 开发
+      target: 'https://app.yongxulvjian.com', // 生产
       changeOrigin: true,
     },
     '/s/': {

+ 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]);