[에러패널] 901 서버 에러 추가

This commit is contained in:
sungmin.in
2024-07-26 11:01:00 +09:00
parent 017b0f0d65
commit b30eebb33c

View File

@@ -176,7 +176,7 @@ export const TAxios = (
return;
}
// 장애 발생
// 900 장애 발생
if (res?.data?.retCode === 900) {
dispatch(
pushPanel({
@@ -185,6 +185,15 @@ export const TAxios = (
);
return;
}
// 901 서버 에러 발생
if (res?.data?.retCode === 901) {
dispatch(
pushPanel({
name: Config.panel_names.ERROR_PANEL,
})
);
return;
}
if (onSuccess) onSuccess(res);
})