diff --git a/src/pages/Recon/index.js b/src/pages/Recon/index.js index 3b36940..206d0a9 100644 --- a/src/pages/Recon/index.js +++ b/src/pages/Recon/index.js @@ -9,6 +9,7 @@ import * as UrlUtils from "utils/ApiPathConst"; import * as React from "react"; import * as HttpUtils from "utils/HttpUtils"; // import * as DateUtils from "utils/DateUtils"; +// import axios from "axios"; import Loadable from 'components/Loadable'; const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent'))); @@ -57,8 +58,24 @@ const Index = () => { console.log(responseData) var myWindow = window.open(); myWindow.document.write(responseData); + }, + onError: function(){ + console.log("error") } }); + + // axios.get(UrlUtils.VIEW_RECON_REPORT, { + // params: searchCriteria + // }).then( + // (response) => { + // console.log(response) + // var myWindow = window.open(); + // myWindow.document.write(response); + // } + // ).catch((error) => { + // console.log(error); + // // return handleError(error, onError); + // }); } function downloadXML(input) { diff --git a/src/pages/authentication/auth-forms/AuthLoginCustom.js b/src/pages/authentication/auth-forms/AuthLoginCustom.js index 82d9fb3..d7fd31b 100644 --- a/src/pages/authentication/auth-forms/AuthLoginCustom.js +++ b/src/pages/authentication/auth-forms/AuthLoginCustom.js @@ -120,6 +120,7 @@ const AuthLoginCustom = () => { // setSumitting(false) }) .catch((error) => { + console.log(error) // setSuccess(false) setOnLogin(false) if(error.response!= undefined){ diff --git a/src/utils/HttpUtils.js b/src/utils/HttpUtils.js index 1c208ac..dba6ad0 100644 --- a/src/utils/HttpUtils.js +++ b/src/utils/HttpUtils.js @@ -6,7 +6,8 @@ export const get = ({ url, params, onSuccess, onFail, onError }) => { params: params }).then( (response) => { onResponse(response, onSuccess, onFail); } - ).catch(error => { + ).catch((error) => { + console.log(error); return handleError(error, onError); }); };