From a32f9b8548497d2941447ddff87e645e3b4fadf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 20 Mar 2026 14:32:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[worker]=20getImageUrl=20fallback=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - image_path 상대경로 반환 원복 (return path) - image_url 우선 사용 유지 --- .../WorkOrders/documents/TemplateInspectionContent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/production/WorkOrders/documents/TemplateInspectionContent.tsx b/src/components/production/WorkOrders/documents/TemplateInspectionContent.tsx index 064d6643..aa2a0707 100644 --- a/src/components/production/WorkOrders/documents/TemplateInspectionContent.tsx +++ b/src/components/production/WorkOrders/documents/TemplateInspectionContent.tsx @@ -73,8 +73,9 @@ function getImageUrl(fileId?: number | null, path?: string | null, imageUrl?: st if (imageUrl) return imageUrl; if (fileId) return `/api/proxy/files/${fileId}/view`; if (!path) return ''; - if (path.startsWith('http')) return path; - return ''; + if (path.startsWith('http://') || path.startsWith('https://')) return path; + if (path.startsWith('/api/proxy/')) return path; + return path; } /** field_values.reference_attribute에서 작업 아이템의 실제 치수를 resolve */