diff options
Diffstat (limited to 'components/vendor-info/pq-simple-dialog.tsx')
| -rw-r--r-- | components/vendor-info/pq-simple-dialog.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/vendor-info/pq-simple-dialog.tsx b/components/vendor-info/pq-simple-dialog.tsx index bb26685d..fbff2a1c 100644 --- a/components/vendor-info/pq-simple-dialog.tsx +++ b/components/vendor-info/pq-simple-dialog.tsx @@ -29,7 +29,7 @@ import { Download, FileText, ChevronDown, ChevronUp, Search } from "lucide-react import { Input } from "@/components/ui/input" import { toast } from "sonner" import { getPQProjectsByVendorId, ProjectPQ, getPQDataByVendorId, PQGroupData } from "@/lib/pq/service" -import { downloadFile } from "@/lib/file-download" +// downloadFile은 동적으로 import interface PQSimpleDialogProps { open: boolean @@ -109,6 +109,9 @@ export function PQSimpleDialog({ const handleFileDownload = async (filePath: string, fileName: string) => { try { + // 동적으로 downloadFile 함수 import + const { downloadFile } = await import('@/lib/file-download') + const result = await downloadFile(filePath, fileName) if (result.success) { toast.success(`${fileName} 파일이 다운로드되었습니다.`) |
