소스 검색

fix: add asset prefix host

hi-cactus! 3 년 전
부모
커밋
1d23b614d2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/containers/Display/components/Container/Slide/Content.tsx

+ 2 - 1
app/containers/Display/components/Container/Slide/Content.tsx

@@ -22,6 +22,7 @@ import React, { useContext, useMemo, PropsWithChildren } from 'react'
 
 import { ContainerContext } from '../ContainerContext'
 import { SlideContext } from './SlideContext'
+import { ASSETS_HOST } from 'app/globalConstants'
 
 const SlideContent: React.RefForwardingComponent<
   HTMLDivElement,
@@ -49,7 +50,7 @@ const SlideContent: React.RefForwardingComponent<
       backgroundStyle.backgroundColor = `rgba(${rgb})`
     }
     if (backgroundImage) {
-      backgroundStyle.backgroundImage = `url("${backgroundImage}")`
+      backgroundStyle.backgroundImage = `url("${ASSETS_HOST}${backgroundImage}")`
     }
     // to adjust full screen style in mobile
     const setStyleToBody =