From 48c9ec148af7dec8e99286cbb67c32b4f418abba Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Tue, 30 Apr 2024 16:28:50 +0800 Subject: [PATCH] Refactor(Statistics): Correct incorrect spelling Correct WEAK to WEEK --- src/renderer/src/pages/System/Statistics/ActiveInfo.tsx | 4 ++-- src/renderer/src/pages/System/Statistics/OnlineInfo.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/pages/System/Statistics/ActiveInfo.tsx b/src/renderer/src/pages/System/Statistics/ActiveInfo.tsx index c79c012..0e93ff6 100644 --- a/src/renderer/src/pages/System/Statistics/ActiveInfo.tsx +++ b/src/renderer/src/pages/System/Statistics/ActiveInfo.tsx @@ -10,7 +10,7 @@ const ActiveInfo = () => { const activeInfoDivRef = useRef(null) const activeInfoEChartsRef = useRef(null) const [isLoading, setIsLoading] = useState(false) - const [scope, setScope] = useState('WEAK') + const [scope, setScope] = useState('WEEK') useEffect(() => { const chartResizeObserver = new ResizeObserver(() => { @@ -165,7 +165,7 @@ const ActiveInfo = () => { disabled={isLoading} style={{ width: '8em' }} > - 最近7天 + 最近7天 最近30天 最近3个月 最近12个月 diff --git a/src/renderer/src/pages/System/Statistics/OnlineInfo.tsx b/src/renderer/src/pages/System/Statistics/OnlineInfo.tsx index 59704af..67b7f32 100644 --- a/src/renderer/src/pages/System/Statistics/OnlineInfo.tsx +++ b/src/renderer/src/pages/System/Statistics/OnlineInfo.tsx @@ -11,7 +11,7 @@ const OnlineInfo = () => { const onlineInfoEChartsRef = useRef(null) const [isLoading, setIsLoading] = useState(false) const [currentOnlineCount, setCurrentOnlineCount] = useState(-1) - const [scope, setScope] = useState('WEAK') + const [scope, setScope] = useState('WEEK') useEffect(() => { const chartResizeObserver = new ResizeObserver(() => { @@ -122,7 +122,7 @@ const OnlineInfo = () => { style={{ width: '8em' }} > 最近24小时 - 最近7天 + 最近7天 最近30天 最近3个月 最近12个月