From 489222feef462f3e54c3e4e842a9721470303cb7 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 26 Apr 2024 11:11:14 +0800 Subject: [PATCH] 1 --- app/app/(admin)/admin/ana/usage-by-model-chart.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/app/(admin)/admin/ana/usage-by-model-chart.tsx b/app/app/(admin)/admin/ana/usage-by-model-chart.tsx index 31c5ba05e..17d317b12 100644 --- a/app/app/(admin)/admin/ana/usage-by-model-chart.tsx +++ b/app/app/(admin)/admin/ana/usage-by-model-chart.tsx @@ -92,9 +92,12 @@ function EchartsComponent({ currentDate, setCurrentDate }: ComponentProps) { if (searchDate != currentDateString) { async function fetchData() { // console.log("异步", searchDate, currentDateString); - const response = await fetch("/api/charts?date=" + currentDateString, { - method: "GET", - }); + const response = await fetch( + "/api/admin/charts?date=" + currentDateString, + { + method: "GET", + }, + ); // console.log('====', searchDate, currentDateString), const option: EChartsOption = await response.json(); option["tooltip"] = {