[에러 패널] 에러 패널 연동(900 error)

This commit is contained in:
sungmin.in
2024-07-25 17:33:41 +09:00
parent 646f74bb8e
commit f128fda539

View File

@@ -17,6 +17,8 @@ import {
import { ACTIVE_POPUP } from "../utils/Config";
import * as HelperMethods from "../utils/helperMethods";
import { getUrl, URLS } from "./apiConfig";
import { pushPanel } from "../actions/panelActions";
import * as Config from "../utils/Config";
let retryCount = 0;
let tokenRefreshing = false;
@@ -179,6 +181,17 @@ export const TAxios = (
//todo "NotServiceLanguage"
return;
}
// 장애 발생
if (res?.data?.retCode === 900) {
dispatch(
pushPanel({
name: Config.panel_names.ERROR_PANEL,
})
);
return;
}
if (onSuccess) onSuccess(res);
})
.catch((error) => {