浏览代码

Merge branch 'master' of http://git.ycjcjy.com/state_grid/invoice_fill_admin

张延森 2 年前
父节点
当前提交
2b84952447
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3
    3
      config/proxy.js
  2. 1
    1
      src/components/PageTable/index.jsx

+ 3
- 3
config/proxy.js 查看文件

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.147:7081',
14
+      target: 'http://192.168.89.25:7081',
15
       changeOrigin: true,
15
       changeOrigin: true,
16
       headers: {
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 查看文件

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