/** * 页面路径环境适配 * * SPA 化(2026-09-08)后所有页面统一为无 .html 后缀的路径(/home、/dedupe …), * 生产(https://api.aishufu.top)与 vite dev 前缀一致,无需再区分环境。 * 旧 MPA 链接形式 /new_web_source/xxx.html 由本模块归一为 /xxx。 */ /** 归一页面链接:/new_web_source/xxx.html → /xxx;其余原样返回 */ export function resolvePageHref(rawHref?: string): string { if (!rawHref) return '' return rawHref.replace(/^\/new_web_source\/(.+)\.html$/, '/$1') } /** 兼容旧引用:SPA 下生产/开发路径一致,恒为 false(页面不再按路径区分桌面/Web) */ export function isDesktopClientPage(): boolean { return false }