diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 55984b4..ec4fa03 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -34,7 +34,7 @@ function Navbar({ show }: { show: boolean }) { function handleLogout() { setUserStatus('logout'); - logoutHooks() + logoutHooks(); } function onMenuItemClick(key) { @@ -79,6 +79,10 @@ function Navbar({ show }: { show: boolean }) { ); + const goHome = () => { + window.location.href = '/dashboard/workplace'; + }; + return (
@@ -88,7 +92,7 @@ function Navbar({ show }: { show: boolean }) { height={50} src={logoImage.src} /> -
工业软件组件化构建开发与运行支撑环境
+
goHome()}>工业软件组件化构建开发与运行支撑环境