(reportId, silent = false)
| 325 | } |
| 326 | |
| 327 | async function loadReportContent(reportId, silent = false) { |
| 328 | if (!reportId) throw new Error("report_id is required"); |
| 329 | const data = await api(`/api/reports/content?report_id=${encodeURIComponent(reportId)}`); |
| 330 | const report = data.report || null; |
| 331 | renderList(uiState.reports, reportId); |
| 332 | if (report) renderViewer(report); |
| 333 | else renderEmpty("没有找到这篇报告。"); |
| 334 | if (!silent) setStatus("报告已打开"); |
| 335 | } |
| 336 | |
| 337 | async function refreshReports(options = {}) { |
| 338 | ensureReportsDom(); |
no test coverage detected