diff --git a/app/admin/view/xhprof/run/detail.js b/app/admin/view/xhprof/run/detail.js index fb2eaa8..c535237 100644 --- a/app/admin/view/xhprof/run/detail.js +++ b/app/admin/view/xhprof/run/detail.js @@ -33,10 +33,13 @@ $(function () { }; // 接口模式请求同一路由(Accept: application/json 触发页面/接口同体的接口分支) + // url 用当前页完整地址:相对地址的解析基准是"当前 URL 目录", + // 详情页自身位于 /admin/xhprof.run/detail,相对 'xhprof.run/detail' 会被 + // 拼成 /admin/xhprof.run/xhprof.run/detail 导致 404;当前页 URL 即同体 + // API 端点(id 已在 location.search 中,勿重复拼接 data) $.ajax({ - url: 'xhprof.run/detail', + url: location.pathname + location.search, type: 'get', - data: {id: runId}, headers: {Accept: 'application/json'}, dataType: 'json', success: function (res) { diff --git a/source/docs/xhprof-backend-verification-report.html b/source/docs/xhprof-backend-verification-report.html index 7e45a54..eebe357 100644 --- a/source/docs/xhprof-backend-verification-report.html +++ b/source/docs/xhprof-backend-verification-report.html @@ -74,7 +74,7 @@ pre { padding: 10px; overflow-x: auto; border: 1px solid #e5e5e5; }
| # | 缺陷 | 处置 |
|---|---|---|
| B1(已修复) | app/admin/view/xhprof/run_watch/index.js:26 调用 window.UA_CORE.util.toDateString —— UA_CORE 全项目零定义(T7 笔误 API),浏览器抛 "Cannot read properties of undefined (reading 'util')",命中记录页数据行渲染崩溃 | 照抄 T5 formatRequestTime 纯 JS 实现替换(保留 isNaN 兜底);实测 32 行正常渲染、console 0 error;fix 提交入库 |
| B2(已上报,不在 T9 修复范围) | app/admin/view/xhprof/run/detail.js:37 $.ajax 用裸相对 URL 'xhprof.run/detail',在 /admin/xhprof.run/detail iframe 内解析为 /admin/xhprof.run/xhprof.run/detail → 404,详情页函数表与 SQL 摘要在浏览器端加载失败(服务端渲染的头部统计正常;API 层功能本身正常) | 上报编排器;建议修法 url: ua.url('xhprof.run/detail')(属 T6 文件,T9 红线禁止改动) |
| B2(已修复) | app/admin/view/xhprof/run/detail.js $.ajax 用裸相对 URL 'xhprof.run/detail',相对地址的解析基准是"当前 URL 目录":详情页自身位于 /admin/xhprof.run/detail(基准目录 /admin/xhprof.run/),拼出 /admin/xhprof.run/xhprof.run/detail → 404,函数表与 SQL 摘要在浏览器端加载失败(服务端渲染的头部统计正常;API 层功能本身正常) | 改为 url: location.pathname + location.search(当前页 URL 即同体 API 端点,对后台入口自定义改名免疫),并删除 data:{id}(id 已在 query 中防重复拼接);弹层与非弹层两上下文实测:函数表 Top100 加载(函数总数 568,main() 在列)、SQL 摘要条有值(1.17s / 16.76% / 90 函数 / 138 次)、console 0 error;fix 提交入库 |








6 组主链断言 + 4 条失败路径 + 3 条回归(+终态恢复)全部通过;页面 QA 两分辨率不崩。XHProf 后台化全链路(采集 → jsonl 落盘 → 定时导入入库 → watch 物化 → 后台三页面 → 过期清理)在真实容器环境验证可用。遗留 B2(详情页浏览器端 ajax 相对路径 404)已上报编排器,不影响列表/命中/监控页面与服务端 API。
+6 组主链断言 + 4 条失败路径 + 3 条回归(+终态恢复)全部通过;页面 QA 两分辨率不崩。XHProf 后台化全链路(采集 → jsonl 落盘 → 定时导入入库 → watch 物化 → 后台三页面 → 过期清理)在真实容器环境验证可用。T9 期间发现的两处前端缺陷(B1 命中记录页假 API、B2 详情页相对路径 404)均已修复并浏览器实测通过,无遗留问题。