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