From ab6e2523baf4d1db1376f51643a34c368b1b5538 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 3 Nov 2025 20:10:58 +0900 Subject: (김준회) 커버페이지 다운로드 파일명 하드코딩 확장자 문제 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/swp/table/swp-table-columns.tsx | 2 +- lib/vendor-document-list/plant/upload/table.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/swp/table/swp-table-columns.tsx b/lib/swp/table/swp-table-columns.tsx index 9fb85d2a..09207be8 100644 --- a/lib/swp/table/swp-table-columns.tsx +++ b/lib/swp/table/swp-table-columns.tsx @@ -176,7 +176,7 @@ export const swpDocumentColumns: ColumnDef[] = [ const url = window.URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url; - a.download = `${docNumber}_cover.docx`; + a.download = `${docNumber}_cover.pdf`; document.body.appendChild(a); a.click(); window.URL.revokeObjectURL(url); diff --git a/lib/vendor-document-list/plant/upload/table.tsx b/lib/vendor-document-list/plant/upload/table.tsx index 2edd9717..ba924853 100644 --- a/lib/vendor-document-list/plant/upload/table.tsx +++ b/lib/vendor-document-list/plant/upload/table.tsx @@ -191,7 +191,7 @@ export function StageSubmissionsTable({ promises, selectedProjectId }: StageSubm const { fileUrl, fileName } = await res.json(); // quickDownload 사용 - quickDownload(fileUrl, fileName || `${projectCode}_cover.docx`); + quickDownload(fileUrl, fileName || `${projectCode}_cover.pdf`); toast.success("커버 페이지 다운로드를 시작했습니다."); -- cgit v1.2.3