diff --git a/src/apis/judge.js b/src/apis/judge.js index e415cd5..14e52b7 100644 --- a/src/apis/judge.js +++ b/src/apis/judge.js @@ -134,6 +134,7 @@ export async function judgeFileDownload(params, alert) { if (res?.isAxiosError || res?.status === 404) { alert.show('파일을 다운로드 할 수 없습니다 [파일정보 오류]'); } else { + if (res?.size <= 0) alert.show('File not found!'); // const onChangeFile = (e) => { // const file = e.target.files[0]; // if (file.type.includes('image')) { @@ -147,6 +148,7 @@ export async function judgeFileDownload(params, alert) { // eslint-disable-next-line no-lonely-if if (res?.type.includes('image')) { // const url = window.URL.createObjectURL(res); + alert.show(~~~); } else { FileSaver.saveAs(res, 'filename'); diff --git a/src/views/biz/judge/JudgeByUserReview.jsx b/src/views/biz/judge/JudgeByUserReview.jsx index b1d4e24..f410085 100644 --- a/src/views/biz/judge/JudgeByUserReview.jsx +++ b/src/views/biz/judge/JudgeByUserReview.jsx @@ -292,7 +292,7 @@ const JudgeByUserReview = ({ msDatagb, menuName }) => { // selectionModel={selectionModel} /> - + );