mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
1
This commit is contained in:
parent
19d7ac5862
commit
489222feef
@ -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"] = {
|
||||
|
Loading…
Reference in New Issue
Block a user