diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-27 12:06:26 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-27 12:06:26 +0000 |
| commit | 7548e2ad6948f1c6aa102fcac408bc6c9c0f9796 (patch) | |
| tree | 8e66703ec821888ad51dcc242a508813a027bf71 /lib/file-download.ts | |
| parent | 7eac558470ef179dad626a8e82db5784fe86a556 (diff) | |
(대표님, 최겸) 기본계약, 입찰, 파일라우트, 계약서명라우트, 인포메이션, 메뉴설정, PQ(메일템플릿 관련)
Diffstat (limited to 'lib/file-download.ts')
| -rw-r--r-- | lib/file-download.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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} 파일을 새 탭에서 열었습니다`); |
