diff --git a/src/utils/dom.ts b/src/utils/dom.ts index a6c51350..7a18871a 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -63,7 +63,7 @@ export const getURL = (file: Partial, size?: typeof PRESETS[keyof typeof if (size) { return file.url - .replace('REMOTE_CURRENT://', `${process.env.REMOTE_CURRENT}/cache/${size}/`) + .replace('REMOTE_CURRENT://', `${process.env.REMOTE_CURRENT}cache/${size}/`) .replace('REMOTE_OLD://', process.env.REMOTE_OLD); } @@ -72,9 +72,6 @@ export const getURL = (file: Partial, size?: typeof PRESETS[keyof typeof .replace('REMOTE_OLD://', process.env.REMOTE_OLD); }; -// export const getImageSize = (file: IFile, size?: string): string => getURL(file); -// `${process.env.API_HOST}${image}`.replace('{size}', size); - export const formatText = (text: string): string => !text ? ''