260625_05_ENH: 연구, 실사 수정사항 적용 5차

This commit is contained in:
2026-06-25 13:30:14 +09:00
parent 63d8653080
commit 0853db0c2a
2 changed files with 1 additions and 2 deletions

View File

@@ -27,7 +27,6 @@ export default async function FilePreviewPage({ searchParams }: FilePreviewPageP
const title = params.title ?? "파일 미리보기";
const images = parseImages(params.images);
const src = params.src ?? "";
console.log("src", src);
const type = params.type ?? (images.length > 0 ? "image" : "pdf");
return (

View File

@@ -45,7 +45,7 @@ export const GET = async (
if (action === "template" && second === "pdf" && third && fourth && slug.length === 4) {
const result = await backApi.get<ArrayBuffer>(
`/review/pdf/download/${encodeURIComponent(third)}/${encodeURIComponent(fourth)}`,
`/review/template/pdf/${encodeURIComponent(third)}/${encodeURIComponent(fourth)}`,
{ expectBinary: true }
);
const disposition = req.nextUrl.searchParams.get("disposition") === "inline" ? "inline" : "attachment";