From 7548e2ad6948f1c6aa102fcac408bc6c9c0f9796 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 27 Aug 2025 12:06:26 +0000 Subject: (대표님, 최겸) 기본계약, 입찰, 파일라우트, 계약서명라우트, 인포메이션, 메뉴설정, PQ(메일템플릿 관련) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/file-download.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/file-download.ts') diff --git a/lib/file-download.ts b/lib/file-download.ts index f78ba8f9..dbf65847 100644 --- a/lib/file-download.ts +++ b/lib/file-download.ts @@ -490,7 +490,9 @@ export const downloadFile = async ( : `${window.location.origin}${filePath}`; // 안전한 새 창 열기 - const newWindow = window.open('', '_blank', 'noopener,noreferrer'); + // const newWindow = window.open('', '_blank', 'noopener,noreferrer'); + const newWindow = window.open(previewUrl, '_blank'); + if (newWindow) { newWindow.location.href = previewUrl; if (showToast) toast.success(`${fileInfo.icon} 파일을 새 탭에서 열었습니다`); -- cgit v1.2.3