李志伟 2 lat temu
rodzic
commit
9347ab73a9
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3
    3
      config/proxy.js
  2. 1
    1
      src/components/PageTable/index.jsx

+ 3
- 3
config/proxy.js Wyświetl plik

@@ -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.147:7081',
14
+      target: 'http://192.168.89.25:7081',
15 15
       changeOrigin: true,
16 16
       headers: {
17
-        origin: 'http://192.168.89.147:7081',
18
-        referer: 'http://192.168.89.147:7081',
17
+        origin: 'http://192.168.89.25:7081',
18
+        referer: 'http://192.168.89.25:7081',
19 19
       },
20 20
     },
21 21
   },

+ 1
- 1
src/components/PageTable/index.jsx Wyświetl plik

@@ -15,7 +15,7 @@ export default (props) => {
15 15
   // 导出函数需要使用的 params
16 16
   const exportParams = useRef()
17 17
   const handleBeforSearch = (params) => {
18
-    params.invoiceId=invoiceId||params.invoiceId||''
18
+    params.invoiceId=invoiceId||params.invoiceId||undefined
19 19
     if (typeof beforeSearchSubmit === 'function') {
20 20
       exportParams.current = beforeSearchSubmit(params);
21 21
     } else {