From 63e4c7f1f67bb2474830b2161b6a43cc683c7a9e Mon Sep 17 00:00:00 2001 From: Monster <389264167@qq.com> Date: Wed, 16 Jul 2025 19:24:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E7=99=BB=E5=BD=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/pages/admin/adminTable.tsx | 11 +++++++---- ui/src/pages/admin/index.tsx | 14 +++++++++----- ui/src/pages/admin/loginHistory.tsx | 18 ++++++++---------- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/ui/src/pages/admin/adminTable.tsx b/ui/src/pages/admin/adminTable.tsx index 310a03f..0e8c041 100644 --- a/ui/src/pages/admin/adminTable.tsx +++ b/ui/src/pages/admin/adminTable.tsx @@ -189,8 +189,11 @@ const AdminTable = () => { { title: '最近活跃时间', dataIndex: 'last_active_at', - render: (text) => { - return text === 0 ? '从未使用' : dayjs.unix(text).fromNow(); + render: (text, record) => { + return + {record.created_at ? dayjs.unix(record.created_at).fromNow() + '加入' : '加入时间未知'} + {record.last_active_at ? dayjs.unix(record.last_active_at).fromNow() + '活跃' : '活跃时间未知'} + }, }, { @@ -212,14 +215,14 @@ const AdminTable = () => { }, ]; return ( - + - 管理员 + 管理员