提交H5业务闭环修复代码
This commit is contained in:
2
src/utils/placeholders.ts
Normal file
2
src/utils/placeholders.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const EXHIBIT_PLACEHOLDER_IMAGE = '/static/icons/marker-exhibit.svg'
|
||||
export const HALL_PLACEHOLDER_IMAGE = '/static/icons/marker-hall.svg'
|
||||
@@ -14,7 +14,10 @@ export const normalizeSameOriginPublicUrl = (url: string | null | undefined) =>
|
||||
if (
|
||||
isSameServer
|
||||
&& parsed.port === '9000'
|
||||
&& parsed.pathname.startsWith('/museum-assets/')
|
||||
&& (
|
||||
parsed.pathname.startsWith('/museum-assets/')
|
||||
|| parsed.pathname.startsWith('/tts-audio/')
|
||||
)
|
||||
) {
|
||||
return `${parsed.pathname}${parsed.search}${parsed.hash}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user