提交H5业务闭环修复代码

This commit is contained in:
lyf
2026-07-01 16:02:21 +08:00
parent c43aa00038
commit e0aeafe062
26 changed files with 396 additions and 95 deletions

View 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'

View File

@@ -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}`
}