From d7ba3e1d658336a79ac3cdfd82c33ab8c898659a Mon Sep 17 00:00:00 2001 From: yanlongqi Date: Mon, 10 Nov 2025 16:29:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2UI=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的 TrophyOutlined 图标导入 - 移除总答题数统计的图标前缀,保持UI简洁 - 修复 Spin 组件的使用方式,改为使用子元素而非 tip 属性 - 添加 type_stats 的空值检查,防止潜在的空指针错误 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- web/src/pages/UserManagement.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/UserManagement.tsx b/web/src/pages/UserManagement.tsx index 036b94c..5547d51 100644 --- a/web/src/pages/UserManagement.tsx +++ b/web/src/pages/UserManagement.tsx @@ -20,7 +20,6 @@ import { import { ArrowLeftOutlined, UserOutlined, - TrophyOutlined, CheckCircleOutlined, CloseCircleOutlined, } from '@ant-design/icons' @@ -164,7 +163,6 @@ const UserManagement: React.FC = () => { } valueStyle={{ color: '#52c41a' }} /> @@ -304,7 +302,9 @@ const UserManagement: React.FC = () => { > {detailLoading ? (
- + +
加载中...
+
) : ( selectedUser && ( @@ -420,7 +420,7 @@ const UserManagement: React.FC = () => { {/* 题型统计 */} - {selectedUser.type_stats.length > 0 && ( + {selectedUser.type_stats && selectedUser.type_stats.length > 0 && ( <> 题型统计