fangmingyue 2 years ago
parent
commit
1f2043094d
2 changed files with 3 additions and 13 deletions
  1. 1
    1
      config/proxy.js
  2. 2
    12
      src/pages/broker/list/detail.jsx

+ 1
- 1
config/proxy.js View File

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

+ 2
- 12
src/pages/broker/list/detail.jsx View File

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