首页导航激活逻辑优化

This commit is contained in:
禺狨 2023-04-04 09:08:45 +08:00
parent 808cfc67a7
commit e684e35ae3

View File

@ -51,6 +51,10 @@ export const Header: React.FC = () => {
} }
}, [departments]); }, [departments]);
useEffect(() => {
serCurrentNav(location.pathname);
}, [location.pathname]);
const onClick: MenuProps["onClick"] = ({ key }) => { const onClick: MenuProps["onClick"] = ({ key }) => {
if (key === "login_out") { if (key === "login_out") {
confirm({ confirm({