From 2b1308956ab09a62c5c1d3267e86af9aa79d5f90 Mon Sep 17 00:00:00 2001 From: ayou <550244300@qq.com> Date: Fri, 29 Aug 2025 23:46:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=B8=83=E5=B1=80):=20=E4=B8=BA=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E8=8F=9C=E5=8D=95=E9=A1=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E6=A0=87=E5=B9=B6=E7=AE=80=E5=8C=96=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=80=89=E9=A1=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为个人信息菜单项添加用户图标,提升视觉一致性 将语言选项的显示从"中文/English"简化为"CN/EN" --- frontend/src/layouts/MainLayout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/layouts/MainLayout.tsx b/frontend/src/layouts/MainLayout.tsx index 31e6392..8598be3 100644 --- a/frontend/src/layouts/MainLayout.tsx +++ b/frontend/src/layouts/MainLayout.tsx @@ -285,7 +285,7 @@ export default function MainLayout() { }, [currentAncestors]) const dropdownMenuItems = useMemo(() => ([ - { key: 'profile', label: '个人信息' }, + { key: 'profile', label: '个人信息', icon: }, { type: 'divider' as any }, { key: 'logout', label: '退出登录', icon: }, ]), []) @@ -505,8 +505,8 @@ export default function MainLayout() { { const v = key as 'zh'|'en'; setLang(v); localStorage.setItem('lang', v) } }} @@ -514,7 +514,7 @@ export default function MainLayout() { > - {lang === 'zh' ? '中文' : 'English'} + {lang === 'zh' ? 'CN' : 'EN'}