import * as React from 'react'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import { getMenuByPath } from '@/router/utils'; import { BASE_PATH } from '@/shared/common/constants'; import './index.scss'; type P = {}; type S = {}; // 侧边栏 class SiderView extends React.Component { render() { const sideMenu = getMenuByPath(); return (

{sideMenu.title}

{sideMenu.childRoute.map(({ id, title, path, hideMenu }, index) => { const pathname = window.location.pathname; return ( !hideMenu &&
{title}
); })}
); } } export default SiderView;