diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 40d8615..0bcb3ff 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -8,7 +8,8 @@ import { import { IconSettings, IconPoweroff, - IconLoading + IconLoading, + IconUser } from '@arco-design/web-react/icon'; import { useSelector, useDispatch } from 'react-redux'; import { GlobalContext } from '@/context'; @@ -38,7 +39,7 @@ function Navbar({ show }: { show: boolean }) { } function onMenuItemClick(key) { - handleLogout(); + if (key === 'logout') handleLogout(); } useEffect(() => { @@ -69,6 +70,10 @@ function Navbar({ show }: { show: boolean }) { const droplist = (