Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { Component } from 'react';
import cx from 'classnames';
import FoundationSymbol from '@icedesign/foundation-symbol';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router';
import { Nav } from '@alifd/next';
import { FormattedMessage } from 'react-intl';
import Logo from '../Logo';
import { asideMenuConfig } from '../../../../menuConfig';
import Authorized from '../../../../utils/Authorized';
import './index.scss';
const SubNav = Nav.SubNav;
const NavItem = Nav.Item;
@withRouter
export default class Aside extends Component {
static propTypes = {};
static defaultProps = {};
constructor(props) {
super(props);
const openKeys = this.getDefaultOpenKeys();
this.state = {
collapse: false,
openDrawer: false,
openKeys,