Pārlūkot izejas kodu

fix AccountsCampus.js

zhanghe 6 gadi atpakaļ
vecāks
revīzija
d9602afa1a
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5 4
      src/routes/Dashboard/Accounts/AccountsCampus.js

+ 5 - 4
src/routes/Dashboard/Accounts/AccountsCampus.js

@@ -27,10 +27,11 @@ export default class CampusAccountsPage extends Component {
   }
 
   handleDownloadOperation = () => {
-    this.props.dispatch({
-      type: 'accounts/fetchCampusExcel',
-      payload: 'download',
-    })
+    window.open('/api/stmt/campus/export');
+    // this.props.dispatch({
+    //   type: 'accounts/fetchCampusExcel',
+    //   payload: 'download',
+    // })
   };
   handleFilterOperation = (params, states) => {
     this.setState({