fix(monitor): 修复 RequestLogs 类型推断错误以适配上游 API 类型变更
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user