fix: default network chart period to 1d instead of 30d (#61)

* Initial plan

* fix: change network chart default period from 30d to 1d

Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>
This commit is contained in:
Copilot
2026-03-10 15:30:42 +08:00
committed by GitHub
parent d7f4f61001
commit e4ba96ea76
+1 -1
View File
@@ -126,7 +126,7 @@ export function NetworkChart({
show: boolean; show: boolean;
}) { }) {
const { t } = useTranslation(); const { t } = useTranslation();
const [period, setPeriod] = React.useState<MonitorPeriod>("30d"); const [period, setPeriod] = React.useState<MonitorPeriod>("1d");
const { data: userData, isError: isLoginError } = useQuery({ const { data: userData, isError: isLoginError } = useQuery({
queryKey: ["login-user"], queryKey: ["login-user"],
queryFn: () => fetchLoginUser(), queryFn: () => fetchLoginUser(),