Browse Source

跳转修改

master
wenlele 2 years ago
parent
commit
a8fc43ef59
  1. 6
      web/client/src/layout/components/sider/index.jsx

6
web/client/src/layout/components/sider/index.jsx

@ -18,9 +18,9 @@ const Sider = (props) => {
let nextItems = leftItems
setItems(nextItems)
scrollbar = new PerfectScrollbar('#page-slider', { suppressScrollX: true });
if (pathname == '/') {
dispatch(push(homePath))
}
// if (pathname == '/') {
// dispatch(push(homePath))
// }
}, [leftItems])
let routeSelectedKey = useLocation().pathname.split('/');
// let routeSelectedKey = [useLocation().pathname.split('/')[1]]//

Loading…
Cancel
Save