From d857215587ee112afd41cb56660cb3f5ae949b22 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 2 May 2022 21:19:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8B=AC=EC=82=AC=EC=9E=90=20=EC=8B=AC?= =?UTF-8?q?=EC=9D=98=20=EC=A7=84=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/judge.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apis/judge.js b/src/apis/judge.js index 14e52b7..d33ab9d 100644 --- a/src/apis/judge.js +++ b/src/apis/judge.js @@ -134,7 +134,10 @@ export async function judgeFileDownload(params, alert) { if (res?.isAxiosError || res?.status === 404) { alert.show('파일을 다운로드 할 수 없습니다 [파일정보 오류]'); } else { - if (res?.size <= 0) alert.show('File not found!'); + if (res?.size <= 0) { + alert.show('File not found!'); + return false; + } // const onChangeFile = (e) => { // const file = e.target.files[0]; // if (file.type.includes('image')) {