From 6a99f229e3f0bc86b7af873e8ed1b3dbe20b476d Mon Sep 17 00:00:00 2001 From: wxj Date: Tue, 30 Jun 2026 09:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E6=9C=80=E8=BF=91=E8=B0=83=E7=94=A8=E6=98=BE=E7=A4=BA=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9AisSuccess=20?= =?UTF-8?q?=E5=B0=86=20LogTypeConsume(2)=20=E5=92=8C=20LogTypeTopup(1)=20?= =?UTF-8?q?=E4=B9=9F=E8=AF=86=E5=88=AB=E4=B8=BA=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/dashboard/RecentActivity.jsx | 2 +- web/src/hooks/dashboard/useDashboardData.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/dashboard/RecentActivity.jsx b/web/src/components/dashboard/RecentActivity.jsx index 2703738..c01c5c4 100644 --- a/web/src/components/dashboard/RecentActivity.jsx +++ b/web/src/components/dashboard/RecentActivity.jsx @@ -22,7 +22,7 @@ import { ArrowUpRight, Clock, Inbox } from 'lucide-react'; import { renderQuota, renderNumber, timestamp2string } from '../../helpers'; const isSuccess = (l) => - l?.type === 0 || l?.status === 0 || l?.type === 'success' || l?.type === undefined; + l?.type === 0 || l?.type === 1 || l?.type === 2 || l?.status === 0 || l?.type === 'success' || l?.type === undefined; const RecentActivity = ({ logs = [], className = '' }) => { const recent = useMemo(() => logs.slice(0, 10), [logs]); diff --git a/web/src/hooks/dashboard/useDashboardData.js b/web/src/hooks/dashboard/useDashboardData.js index 81eae9b..a36542e 100644 --- a/web/src/hooks/dashboard/useDashboardData.js +++ b/web/src/hooks/dashboard/useDashboardData.js @@ -23,7 +23,7 @@ import { API, isAdmin, showError } from '../../helpers'; const PAGE_SIZE = 200; const isSuccess = (l) => - l?.type === 0 || l?.status === 0 || l?.type === 'success'; + l?.type === 0 || l?.type === 1 || l?.type === 2 || l?.status === 0 || l?.type === 'success'; const sum = (arr, key) => arr.reduce((s, l) => s + (Number(l[key]) || 0), 0);