3 Revize

Autor SHA1 Zpráva Datum
  Yansen 35790bc377 feat před 9 měsíci
  Yansen df62e4f709 feat před 9 měsíci
  Yansen a7b71d6b5d feat před 9 měsíci
3 změnil soubory, kde provedl 10 přidání a 7 odebrání
  1. 3
    3
      config/proxy.js
  2. 6
    0
      src/pages/invoiceDetail/index.jsx
  3. 1
    4
      src/utils/request.js

+ 3
- 3
config/proxy.js Zobrazit soubor

11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
12
     '/api/': {
12
     '/api/': {
13
       // 要代理的地址
13
       // 要代理的地址
14
-      target: 'http://192.168.89.13:7081',
14
+      target: 'http://localhost:7081',
15
       changeOrigin: true,
15
       changeOrigin: true,
16
       headers: {
16
       headers: {
17
-        origin: 'http://192.168.89.13:7081',
18
-        referer: 'http://192.168.89.13:7081',
17
+        origin: 'http://localhost:7081',
18
+        referer: 'http://localhost:7081',
19
       },
19
       },
20
     },
20
     },
21
   },
21
   },

+ 6
- 0
src/pages/invoiceDetail/index.jsx Zobrazit soubor

100
       key: 'mailPhone',
100
       key: 'mailPhone',
101
       search: false,
101
       search: false,
102
     },
102
     },
103
+    {
104
+      title: '外网电子邮箱',
105
+      dataIndex: 'email',
106
+      key: 'email',
107
+      search: false,
108
+    },
103
     {
109
     {
104
       title: '收件人地址',
110
       title: '收件人地址',
105
       dataIndex: 'mailAddress',
111
       dataIndex: 'mailAddress',

+ 1
- 4
src/utils/request.js Zobrazit soubor

89
   responseInterceptors: [responseInterceptor],
89
   responseInterceptors: [responseInterceptor],
90
 };
90
 };
91
 
91
 
92
-export default (...args) => {
93
-
94
-  return request(...args).then((r) => (args[1]?.download ? r: r.data ));
95
-};
92
+export default (...args) => request(...args).then((r) => r.data);
96
 
93
 
97
 export function queryTable(apiRequest) {
94
 export function queryTable(apiRequest) {
98
   return function (params) {
95
   return function (params) {