| | |
| | | } |
| | | |
| | | const menuItems = [ |
| | | ...(menu |
| | | ? [ |
| | | { |
| | | key: 'center', |
| | | icon: <UserOutlined />, |
| | | label: '个人中心', |
| | | }, |
| | | { |
| | | key: 'settings', |
| | | icon: <SettingOutlined />, |
| | | label: '个人设置', |
| | | }, |
| | | { |
| | | type: 'divider' as const, |
| | | }, |
| | | ] |
| | | : []), |
| | | // ...(menu |
| | | // ? [ |
| | | // { |
| | | // key: 'center', |
| | | // icon: <UserOutlined />, |
| | | // label: '个人中心', |
| | | // }, |
| | | // { |
| | | // key: 'settings', |
| | | // icon: <SettingOutlined />, |
| | | // label: '个人设置', |
| | | // }, |
| | | // { |
| | | // type: 'divider' as const, |
| | | // }, |
| | | // ] |
| | | // : []), |
| | | { |
| | | key: 'settings', |
| | | icon: <SettingOutlined />, |
| | | label: '个人设置', |
| | | }, |
| | | { |
| | | type: 'divider' as const, |
| | | }, |
| | | { |
| | | key: 'logout', |
| | | icon: <LogoutOutlined />, |