Browse Source

用户中心

dev
deartibers 3 years ago
parent
commit
0716541298
  1. 5
      web/client/src/layout/containers/layout/index.jsx

5
web/client/src/layout/containers/layout/index.jsx

@ -140,6 +140,11 @@ const LayoutContainer = props => {
useEffect(() => { useEffect(() => {
let pathnameArr = location.pathname.split('/') 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 = [] let openArr = []
for (let i = 0; i < allItems.length; i++) { for (let i = 0; i < allItems.length; i++) {
if (allItems[i].items) { if (allItems[i].items) {

Loading…
Cancel
Save