ShopTime 고도화 프로젝트 [SHOPTIME-3872] [요청] 에러문구 확인

This commit is contained in:
hyunwoo93.cha
2024-11-26 12:29:36 +09:00
parent f759e96722
commit 699184ed9c
3 changed files with 93 additions and 78 deletions

View File

@@ -1,24 +1,31 @@
import axios from "axios";
import axios from 'axios';
import Spotlight from "@enact/spotlight";
import Spotlight from '@enact/spotlight';
import { types } from "../actions/actionTypes";
import { types } from '../actions/actionTypes';
import {
changeAppStatus,
changeLocalSettings,
setShowPopup,
setSystemNotice,
setSystemTermination,
} from "../actions/commonActions";
showError,
} from '../actions/commonActions';
import {
getAuthenticationCode,
getReAuthenticationCode,
} from "../actions/deviceActions";
import { pushPanel, resetPanels } from "../actions/panelActions";
import * as Config from "../utils/Config";
import { ACTIVE_POPUP } from "../utils/Config";
import * as HelperMethods from "../utils/helperMethods";
import { getUrl, URLS } from "./apiConfig";
} from '../actions/deviceActions';
import {
pushPanel,
resetPanels,
} from '../actions/panelActions';
import * as Config from '../utils/Config';
import { ACTIVE_POPUP } from '../utils/Config';
import * as HelperMethods from '../utils/helperMethods';
import {
getUrl,
URLS,
} from './apiConfig';
let tokenRefreshing = false;
const axiosQueue = [];
@@ -156,9 +163,12 @@ export const TAxios = (
if (res?.data?.retCode !== 0) {
console.error("accessToken failed", res.data.retCode);
dispatch(
setShowPopup(ACTIVE_POPUP.networkErrorPopup, {
data: res.data.retCode,
})
showError(
res.data.retCode,
res.data.retMsg,
false,
res.data.retDetailCode
)
);
return;
}