From c665ef585176b2d076c8cf95501b6f29e0113098 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Fri, 10 Jul 2026 21:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=A7=92=E8=89=B2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将角色从账号列拆出为独立列,避免 Tag 叠在用户名下显示异常。 --- .../src/pages/admin/AdminDashboardPage.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/frontend/src/pages/admin/AdminDashboardPage.tsx b/apps/frontend/src/pages/admin/AdminDashboardPage.tsx index cd54ecc7..27c8f589 100644 --- a/apps/frontend/src/pages/admin/AdminDashboardPage.tsx +++ b/apps/frontend/src/pages/admin/AdminDashboardPage.tsx @@ -85,17 +85,18 @@ export default function AdminDashboardPage() { { title: '账号', dataIndex: 'username', - minWidth: 140, - render: (value, row) => ( -
- {value || '-'} - {row.role ? : null} -
- ), + minWidth: 120, + render: (value) => {value || '-'}, + }, + { + title: '角色', + dataIndex: 'role', + width: 110, + render: (value) => , }, { title: '结果', - width: 100, + width: 90, render: (_, row) => row.success ? ( 成功