Ver código fonte

下载请求 暂时去掉参数

sophieChenyx 6 anos atrás
pai
commit
2c8e7776b9

+ 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,
-      }
     })
   };