[에너지 라벨]#임시

- 토큰 만료일때 재처리
This commit is contained in:
junghoon86.park
2025-11-12 17:41:00 +09:00
parent 2d2b438508
commit 693780298f

View File

@@ -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) {