|
|
@ -140,6 +140,11 @@ const LayoutContainer = props => { |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
let pathnameArr = location.pathname.split('/') |
|
|
|
if (location.pathname == '/userCenter') { |
|
|
|
localStorage.setItem('poms_open_sider', JSON.stringify([])) |
|
|
|
localStorage.removeItem('poms_selected_sider') |
|
|
|
setLeftShow(false) |
|
|
|
} |
|
|
|
let openArr = [] |
|
|
|
for (let i = 0; i < allItems.length; i++) { |
|
|
|
if (allItems[i].items) { |
|
|
|