refactor(frontend): 优化 Usage 功能模块组件

- 改进 HorizontalRequestTimeline, IntervalTimelineCard, RequestDetailDrawer 等组件
- 优化表格展示组件
This commit is contained in:
fawney19
2025-12-12 20:22:03 +08:00
parent 737ab3b530
commit 63e1a0d823
6 changed files with 6 additions and 24 deletions

View File

@@ -60,6 +60,7 @@ import ScatterChart from '@/components/charts/ScatterChart.vue'
import { cacheAnalysisApi, type IntervalTimelineResponse } from '@/api/cache'
import { meApi } from '@/api/me'
import type { ChartData, ChartOptions } from 'chart.js'
import { log } from '@/utils/logger'
const props = withDefaults(defineProps<{
title: string
@@ -294,7 +295,7 @@ async function loadData() {
})
}
} catch (error) {
console.error('加载请求间隔时间线失败:', error)
log.error('加载请求间隔时间线失败:', error)
timelineData.value = null
} finally {
loading.value = false