fix: [worker] getImageUrl fallback 로직 원복
- image_path 상대경로 반환 원복 (return path) - image_url 우선 사용 유지
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user