Yansen před 2 roky
rodič
revize
4c57f97253

+ 1
- 1
config/proxy.js Zobrazit soubor

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

+ 4
- 1
src/pages/MonitoringScreen2/components/MachineryInfo.jsx Zobrazit soubor

@@ -14,7 +14,10 @@ export default React.forwardRef((props, ref) => {
14 14
       <Row gutter={16}>
15 15
         <Col span={8}>农机名称</Col>
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 21
             {data.machineryName || ''}
19 22
           </Link>
20 23
         </Col>