fix(monitor): 修复 RequestLogs 类型推断错误以适配上游 API 类型变更

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kongkongyo
2026-02-09 21:50:40 +08:00
parent 7aee0577ea
commit e050aee804

View File

@@ -160,7 +160,7 @@ export function RequestLogs({ data, loading: parentLoading, providerMap, provide
setLogLoading(true); setLogLoading(true);
try { try {
const response = await usageApi.getUsage(); const response = await usageApi.getUsage();
const usageData = response?.usage ?? response; const usageData = (response?.usage ?? response) as Record<string, unknown>;
// 应用时间范围过滤 // 应用时间范围过滤
if (usageData?.apis) { if (usageData?.apis) {