修复Navbar菜单点击事件:增强事件参数处理,添加调试日志

This commit is contained in:
Your Name 2026-01-02 14:52:20 +08:00
parent 5840d8a88e
commit 7bdddffa14

View File

@ -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') {