fix(dashboard): correct legend name mismatch and initialize chart options
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user