From 045aa23af167d45e59ae5f09be1b889339bd7378 Mon Sep 17 00:00:00 2001 From: basssy Date: Thu, 14 Nov 2024 11:51:17 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=B2=A8?= =?UTF-8?q?=EB=B6=80=ED=8C=8C=EC=9D=BC=20=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/floorPlan/estimate/useEstimateController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index 68252e95..4330a208 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -108,8 +108,6 @@ export const useEstimateController = (planNo) => { const handleEstimateFileDownload = async (originFile) => { const options = { responseType: 'blob' } - console.log('첨부파일 다운로드 호출:::::::', originFile) - await promisePost({ url: `/api/file/fileDownload`, data: originFile, option: options }) .then((resultData) => { if (resultData) { @@ -118,7 +116,7 @@ export const useEstimateController = (planNo) => { const link = document.createElement('a') link.href = fileUrl - link.download = file.srcFileNm + link.download = originFile.faileName document.body.appendChild(link) link.click() link.remove() @@ -126,6 +124,7 @@ export const useEstimateController = (planNo) => { } }) .catch((error) => { + console.log('::FileDownLoad Error::', error) alert('File does not exist.') }) }