mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-29 04:12:51 +08:00
首页导航激活逻辑优化
This commit is contained in:
parent
808cfc67a7
commit
e684e35ae3
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user