diff --git a/src/compenents/header/index.tsx b/src/compenents/header/index.tsx index fb8e325..a96a617 100644 --- a/src/compenents/header/index.tsx +++ b/src/compenents/header/index.tsx @@ -51,6 +51,10 @@ export const Header: React.FC = () => { } }, [departments]); + useEffect(() => { + serCurrentNav(location.pathname); + }, [location.pathname]); + const onClick: MenuProps["onClick"] = ({ key }) => { if (key === "login_out") { confirm({