fix(dashboard): correct legend name mismatch and initialize chart options

This commit is contained in:
Ray.Hao
2026-04-09 23:56:21 +08:00
parent 53a8f17f16
commit 4d8e8909b9

View File

@@ -515,7 +515,7 @@ const displayTransitionTotalPvCount = computed(() =>
// 访问趋势日期范围(单位:天)
const visitTrendDateRange = ref(7);
// 访问趋势图表配置
const visitTrendChartOptions = ref();
const visitTrendChartOptions = ref({});
/**
* 获取访客统计数据
@@ -558,7 +558,7 @@ const updateVisitTrendChartOptions = (data: VisitTrendDetail) => {
trigger: "axis",
},
legend: {
data: ["浏览量(PV)", "访客(UV)"],
data: ["浏览量(PV)", "访客(UV)"],
bottom: 0,
},
grid: {