fangmingyue 1 gadu atpakaļ
vecāks
revīzija
1f2043094d
2 mainītis faili ar 3 papildinājumiem un 13 dzēšanām
  1. 1
    1
      config/proxy.js
  2. 2
    12
      src/pages/broker/list/detail.jsx

+ 1
- 1
config/proxy.js Parādīt failu

@@ -9,7 +9,7 @@ export default {
9 9
   dev: {
10 10
     '/api/': {
11 11
       // target: 'https://xlk.njyz.tech/',
12
-      target: 'http://192.168.89.76:8081',
12
+      target: 'http://127.0.0.1:8081',
13 13
       // target: 'https://www.newhousehold.cn',
14 14
       changeOrigin: true,
15 15
       pathRewrite: {

+ 2
- 12
src/pages/broker/list/detail.jsx Parādīt failu

@@ -1,5 +1,5 @@
1 1
 import { getBrokerDetails } from '@/services/apis';
2
-import { useEffect } from 'react';
2
+import { useEffect, useRef } from 'react';
3 3
 import React from 'react';
4 4
 import { Avatar, Row, Col } from 'antd';
5 5
 import apis from '@/services/apis';
@@ -7,22 +7,12 @@ import request from '@/utils/request';
7 7
 
8 8
 function agentDeal (props) {
9 9
   const { detail, personId } = props;
10
-  // const formRef = useRef();
11
-
12
-  // useEffect(() => {
13
-  //   if (personId) {
14
-  //     getBrokerDetails(personId).then((res) => {
15
-  //       res; console.log('方方', res)
16
-  //     });
17
-  //   }
18
-
19
-  // }, [personId]);
20 10
 
21 11
   useEffect(() => {
22 12
     request({
23 13
       ...apis.broker.getBrokerDetails, params: { personId: detail.personId }
24 14
     }).then((res) => {
25
-      res; console.log('res', res)
15
+      console.log('res', res)
26 16
     });
27 17
   });
28 18