浏览代码

fix(compiler): fixed

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