Fix crash when refresh class page
This commit is contained in:
parent
b8f227374a
commit
a70b7fe29c
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ const menuOptions = activePath => [
|
||||||
unselectedIcon: <HomeOutlined />,
|
unselectedIcon: <HomeOutlined />,
|
||||||
pathname: '/home',
|
pathname: '/home',
|
||||||
isActive:
|
isActive:
|
||||||
activePath === '/home' || activePath === '/login' || activePath === '/',
|
activePath === '/home' ||
|
||||||
|
activePath === '/login' ||
|
||||||
|
activePath === '/' ||
|
||||||
|
activePath.indexOf('class') !== -1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|
Loading…
Reference in a new issue