Parcourir la source

下载请求 暂时去掉参数

sophieChenyx il y a 6 ans
Parent
commit
2c8e7776b9
2 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 1 1
      src/models/accounts.js
  2. 1 4
      src/routes/Dashboard/Accounts/AccountsTerminals.js

+ 1 - 1
src/models/accounts.js

@@ -53,7 +53,7 @@ export default {
       }
     },
     *fetchTerminalsExcel({ payload }, { call }) {
-      window.open(`/api/stmt/campus/export?${stringify(payload)}`);
+      window.open('/api/stmt/campus/export');
     },
 
     *fetchCampusAmount({ payload }, { call, put }) {

+ 1 - 4
src/routes/Dashboard/Accounts/AccountsTerminals.js

@@ -28,12 +28,9 @@ export default class TerminalsAccountsPage extends Component {
     })
   }
   // 下载
-  handleDownloadOperation = (params) => {
+  handleDownloadOperation = () => {
     this.props.dispatch({
       type: 'accounts/fetchTerminalsExcel',
-      payload: {
-        ...params,
-      }
     })
   };