Yansen 2 年之前
父節點
當前提交
4c57f97253
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1
    1
      config/proxy.js
  2. 4
    1
      src/pages/MonitoringScreen2/components/MachineryInfo.jsx

+ 1
- 1
config/proxy.js 查看文件

11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
12
     '/api/': {
12
     '/api/': {
13
       // 要代理的地址
13
       // 要代理的地址
14
-      target: 'http://192.168.89.76:7080',
14
+      target: 'http://127.0.0.1:7080',
15
       // target: 'http://192.168.89.76:7080',
15
       // target: 'http://192.168.89.76:7080',
16
       // target: 'http://machine.njyunzhi.com',
16
       // target: 'http://machine.njyunzhi.com',
17
       // 配置了这个可以从 http 代理到 https
17
       // 配置了这个可以从 http 代理到 https

+ 4
- 1
src/pages/MonitoringScreen2/components/MachineryInfo.jsx 查看文件

14
       <Row gutter={16}>
14
       <Row gutter={16}>
15
         <Col span={8}>农机名称</Col>
15
         <Col span={8}>农机名称</Col>
16
         <Col span={16}>
16
         <Col span={16}>
17
-          <Link to={``} target="_blank">
17
+          <Link
18
+            to={`/Machinery/OperationStatistics/detail?machineryId=${data.machineryId}`}
19
+            target="_blank"
20
+          >
18
             {data.machineryName || ''}
21
             {data.machineryName || ''}
19
           </Link>
22
           </Link>
20
         </Col>
23
         </Col>