This commit is contained in:
ray
2024-10-10 00:05:58 +08:00

View File

@@ -33,7 +33,7 @@
<script setup lang="ts"> <script setup lang="ts">
import * as echarts from "echarts"; import * as echarts from "echarts";
import StatsAPI, { VisitTrendVO, VisitTrendQuery } from "@/api/log"; import LogAPI, { VisitTrendVO, VisitTrendQuery } from "@/api/log";
const dataRange = ref(1); const dataRange = ref(1);
const chart: Ref<echarts.ECharts | null> = ref(null); const chart: Ref<echarts.ECharts | null> = ref(null);
@@ -156,7 +156,7 @@ const calculateDateRange = () => {
/** 加载数据 */ /** 加载数据 */
const loadData = () => { const loadData = () => {
const { startDate, endDate } = calculateDateRange(); const { startDate, endDate } = calculateDateRange();
StatsAPI.getVisitTrend({ LogAPI.getVisitTrend({
startDate, startDate,
endDate, endDate,
} as VisitTrendQuery).then((data) => { } as VisitTrendQuery).then((data) => {