zlisen 3 years ago
parent
commit
c067314e9e

+ 2
- 2
config/proxy.js View File

@@ -8,8 +8,8 @@
8 8
 export default {
9 9
   dev: {
10 10
     '/api/': {
11
-      // target: 'https://xlk.njyz.tech/',
12
-      target: 'http://localhost:8081/',
11
+      target: 'https://xlk.njyz.tech/',
12
+      // target: 'http://localhost:8081/',
13 13
       // target: 'https://xlj.newlandsh.com/',
14 14
       changeOrigin: true,
15 15
       pathRewrite: {

+ 1
- 1
src/pages/customer/Customer/PublicCustomer/index.jsx View File

@@ -71,7 +71,7 @@ const PublicCustomer = () => {
71 71
     router.push({
72 72
       pathname: '/customer/customerlist/publicCustomerDetail',
73 73
       query: {
74
-        id: record.personId,
74
+        id: record.customerId,
75 75
       },
76 76
     });
77 77
   }

+ 1
- 1
src/pages/customer/Customer/PublicCustomer/publicCustomerDetail.jsx View File

@@ -220,7 +220,7 @@ function header(props) {
220 220
           dataSource={records}
221 221
           columns={columns}
222 222
           style={{ marginTop: '15px' }}
223
-          pagination={{ pageSize: 10, total: records.length, onChange }}
223
+          pagination={{ pageSize: 10, total: records?.length, onChange }}
224 224
         />
225 225
       </div>
226 226
     </>

+ 0
- 1
src/pages/staff/Role/Edit/index.jsx View File

@@ -6,7 +6,6 @@ import AuthButton from '@/components/AuthButton';
6 6
 import request from '@/utils/request';
7 7
 import router from 'umi/router';
8 8
 import apis from '@/services/apis';
9
-import AuthButton from '@/components/AuthButton';
10 9
 
11 10
 const { TextArea } = Input;
12 11