From 8317fd3665dba1bc70368ca9710809e1093e6dec Mon Sep 17 00:00:00 2001 From: clkim Date: Fri, 5 Dec 2025 10:25:23 +0900 Subject: [PATCH] =?UTF-8?q?fix.=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/utils/dataUtil.ts | 11 ++++------- nuxt.config.ts | 5 ----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/layers/utils/dataUtil.ts b/layers/utils/dataUtil.ts index 526eecf..3e3bb51 100644 --- a/layers/utils/dataUtil.ts +++ b/layers/utils/dataUtil.ts @@ -195,17 +195,14 @@ export const getResourceSrc = ( resourcesType?: 'IMG' | 'VID' ) => { if (!resourcesData) return null - const resPath = resourcesData.res_path - const resType = resourcesType || resourcesData.resource_type + const resPath = resourcesData?.res_path + const resType = resourcesType || resourcesData?.resource_type const pcField = isTypeVideo(resType) ? 'path_vid_pc' : 'path_pc' const mobileField = isTypeVideo(resType) ? 'path_vid_mo' : 'path_mo' - const pcPath = resPath[pcField] || resPath[mobileField] - const mobilePath = resPath[mobileField] || resPath[pcField] - - // 경로가 없으면 null 반환 - if (!pcPath && !mobilePath) return null + const pcPath = resPath?.[pcField] || resPath?.[mobileField] || '' + const mobilePath = resPath?.[mobileField] || resPath?.[pcField] || '' return { pc: pcPath, diff --git a/nuxt.config.ts b/nuxt.config.ts index de79a5f..82095c9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -112,10 +112,5 @@ export default defineNuxtConfig({ allowedHosts: true, }, base: '/', - // 프로덕션에서 hydration mismatch 상세 로그 활성화 (디버깅 후 제거 권장) - define: { - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true, - }, - // 제거 }, })