This commit is contained in:
sijinhui 2024-04-26 11:11:14 +08:00
parent 19d7ac5862
commit 489222feef

View File

@ -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, {
const response = await fetch(
"/api/admin/charts?date=" + currentDateString,
{
method: "GET",
});
},
);
// console.log('====', searchDate, currentDateString),
const option: EChartsOption = await response.json();
option["tooltip"] = {