diff options
| -rw-r--r-- | frontend/src/components/ProjectMetricRow.svelte | 2 | ||||
| -rw-r--r-- | frontend/src/lib/dashboardMetrics.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/ProjectMetricRow.svelte b/frontend/src/components/ProjectMetricRow.svelte index 31001bf..7980622 100644 --- a/frontend/src/components/ProjectMetricRow.svelte +++ b/frontend/src/components/ProjectMetricRow.svelte @@ -35,7 +35,7 @@ class="metric-card" data-testid="metric-card" role="listitem" - data-todo={metric.usageLabel === '-' ? 'TODO: /api/ai/usage 无 totals.requests 时保持占位 -, 计数端点就绪后切换' : undefined} + data-todo={metric.usageLabel === '-' ? 'TODO: /api/ai/usage 未返回 totals.requests(使用记录为空)时保持占位 -' : undefined} > <span class="mlabel">AI 用量</span> <span class="mvalue">{metric.usageLabel}</span> diff --git a/frontend/src/lib/dashboardMetrics.ts b/frontend/src/lib/dashboardMetrics.ts index 2801c9d..eac443f 100644 --- a/frontend/src/lib/dashboardMetrics.ts +++ b/frontend/src/lib/dashboardMetrics.ts @@ -7,7 +7,7 @@ export interface DashboardMetric { datasetCount: number; runningRuns: number; doneRuns: number; - /** "7 次" 或 "-"(后端无请求计数时) */ + /** "7 次" 或 "-"(/api/ai/usage 未返回 totals.requests,通常为无使用记录) */ usageLabel: string; /** 次要说明:token 计数摘要,无数据为空串 */ usageTokens: string; |
