fix. 다국어 dataResourcesUrl경로 env로 수정
This commit is contained in:
@@ -24,8 +24,8 @@ export const getImageHost = (
|
||||
if (/^(https?:\/\/|www\.)/.test(path)) return path
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
const { staticUrl, assetsUrl } = config.public
|
||||
const { imageType = 'game' } = options
|
||||
const { staticUrl, runType } = config.public
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV === 'development'
|
||||
const isCommon = imageType === 'common'
|
||||
@@ -39,9 +39,7 @@ export const getImageHost = (
|
||||
if (isDevelopment) return path
|
||||
|
||||
// 공통/게임 여부에 따른 경로 결정
|
||||
const basePath = isCommon
|
||||
? `${staticUrl}/${runType}/templates/brand`
|
||||
: staticUrl
|
||||
const basePath = isCommon ? assetsUrl : staticUrl
|
||||
|
||||
return `${basePath}${path}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user