[에러 패널] 에러 패널 연동(900 error)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user