zlisen 3 years ago
parent
commit
c067314e9e

+ 2
- 2
config/proxy.js View File

8
 export default {
8
 export default {
9
   dev: {
9
   dev: {
10
     '/api/': {
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
       // target: 'https://xlj.newlandsh.com/',
13
       // target: 'https://xlj.newlandsh.com/',
14
       changeOrigin: true,
14
       changeOrigin: true,
15
       pathRewrite: {
15
       pathRewrite: {

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

71
     router.push({
71
     router.push({
72
       pathname: '/customer/customerlist/publicCustomerDetail',
72
       pathname: '/customer/customerlist/publicCustomerDetail',
73
       query: {
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
           dataSource={records}
220
           dataSource={records}
221
           columns={columns}
221
           columns={columns}
222
           style={{ marginTop: '15px' }}
222
           style={{ marginTop: '15px' }}
223
-          pagination={{ pageSize: 10, total: records.length, onChange }}
223
+          pagination={{ pageSize: 10, total: records?.length, onChange }}
224
         />
224
         />
225
       </div>
225
       </div>
226
     </>
226
     </>

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

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