fix: 🐛 修复引入错误的API

修复引入错误的API
This commit is contained in:
Theo
2024-10-09 23:15:52 +08:00
parent 95ba3cd26e
commit 13190a1847

View File

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