From 7bdddffa1407fe28a1da184897edf508d2f518a3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 2 Jan 2026 14:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DNavbar=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=EF=BC=9A=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=8F=82=E6=95=B0=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Navbar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Navbar.vue b/frontend/src/components/Navbar.vue index 27227f8..3b2e042 100644 --- a/frontend/src/components/Navbar.vue +++ b/frontend/src/components/Navbar.vue @@ -161,7 +161,9 @@ const handleAchievements = () => { } // 处理菜单点击 -const handleMenuClick = ({ key }: { key: string }) => { +const handleMenuClick = (info: any) => { + const key = info?.key || info + console.log('菜单点击事件:', key, info) if (key === 'profile') { router.push('/profile') } else if (key === 'settings') {