e248b6e43a
- SPA 化:22 个 MPA html 入口与 *-main.ts 合并为 index.html + vue-router(URL 无 .html 后缀), 页面跳转全部 router-link,/new_web_source/xxx.html 旧路径归一为 /xxx - 任务面板统一:共享 TaskCenterPanel/TaskItemCard/TaskStatCards/HistoryTaskLayer, 16 个工具页右侧统一为统计卡 + 当前任务 + 历史任务弹层(任务ID/开始/结束/状态必展示) - 历史记录支持单条删除 + 批量勾选删除(确认框/全选/失败提示) - Java 7 模块(dedupe/convert/split/productrisk/shopmatch/pricetrack/deletebrand) history 接口补齐任务时间字段(VO+Service,复用 biz_file_task 列) - 图片工作台/API 层(brand/permission/user)既有未提交改动一并提交
19 lines
734 B
TypeScript
19 lines
734 B
TypeScript
/**
|
|
* 页面路径环境适配
|
|
*
|
|
* 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
|
|
}
|