3 次代码提交

作者 SHA1 备注 提交日期
  Yansen 35790bc377 feat 9 个月前
  Yansen df62e4f709 feat 9 个月前
  Yansen a7b71d6b5d feat 9 个月前
共有 3 个文件被更改,包括 10 次插入7 次删除
  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 查看文件

@@ -11,11 +11,11 @@ export default {
11 11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
12 12
     '/api/': {
13 13
       // 要代理的地址
14
-      target: 'http://192.168.89.13:7081',
14
+      target: 'http://localhost:7081',
15 15
       changeOrigin: true,
16 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 查看文件

@@ -100,6 +100,12 @@ export default (props) => {
100 100
       key: 'mailPhone',
101 101
       search: false,
102 102
     },
103
+    {
104
+      title: '外网电子邮箱',
105
+      dataIndex: 'email',
106
+      key: 'email',
107
+      search: false,
108
+    },
103 109
     {
104 110
       title: '收件人地址',
105 111
       dataIndex: 'mailAddress',

+ 1
- 4
src/utils/request.js 查看文件

@@ -89,10 +89,7 @@ export const requestConfig = {
89 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 94
 export function queryTable(apiRequest) {
98 95
   return function (params) {