[에너지 라벨]#임시
- 토큰 만료일때 재처리
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { URLS } from '../api/apiConfig';
|
||||
import { TAxios } from '../api/TAxios';
|
||||
import { types } from './actionTypes';
|
||||
import { getReAuthenticationCode } from './deviceActions';
|
||||
|
||||
/**
|
||||
* PDF를 이미지로 변환 (재시도 로직 포함)
|
||||
@@ -80,6 +81,12 @@ export const convertPdfToImage =
|
||||
return;
|
||||
}
|
||||
|
||||
if(response.data.size > 100 && response.data.type === "text/xml"){
|
||||
dispatch(getReAuthenticationCode());
|
||||
attemptConversion();
|
||||
return;
|
||||
}
|
||||
|
||||
let imageUrl;
|
||||
try {
|
||||
if (response.data instanceof Blob) {
|
||||
|
||||
Reference in New Issue
Block a user