From 4d8e8909b9dde19829a77d0df4875ba4c245f558 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Thu, 9 Apr 2026 23:56:21 +0800 Subject: [PATCH] fix(dashboard): correct legend name mismatch and initialize chart options --- src/views/dashboard/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 95da2120..d241cf73 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -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: {