fix: 修复apikey窗口限制时间显示异常的问题

This commit is contained in:
shaw
2025-11-28 14:02:58 +08:00
parent 49645e8a50
commit d9476230c6
2 changed files with 8 additions and 2 deletions

View File

@@ -3969,6 +3969,8 @@ const showUsageDetails = (apiKey) => {
dailyCost: cachedStats?.dailyCost ?? apiKey.dailyCost ?? 0,
currentWindowCost: cachedStats?.currentWindowCost ?? apiKey.currentWindowCost ?? 0,
windowRemainingSeconds: cachedStats?.windowRemainingSeconds ?? apiKey.windowRemainingSeconds,
windowStartTime: cachedStats?.windowStartTime ?? apiKey.windowStartTime ?? null,
windowEndTime: cachedStats?.windowEndTime ?? apiKey.windowEndTime ?? null,
// 合并 usage 数据(用于详情弹窗中的统计卡片)
usage: {
...apiKey.usage,