diff --git a/src/components/Layout/Layout.less b/src/components/Layout/Layout.less index 1580b42..7fb56e0 100644 --- a/src/components/Layout/Layout.less +++ b/src/components/Layout/Layout.less @@ -103,14 +103,6 @@ } } -.sidemenu { - :global{ - .ant-menu-item { - width: 100%; - } - } -} - .switchtheme { width: 100%; position: absolute; diff --git a/src/components/Layout/Menu.js b/src/components/Layout/Menu.js index 9c0ce1e..0ce46ab 100644 --- a/src/components/Layout/Menu.js +++ b/src/components/Layout/Menu.js @@ -4,7 +4,6 @@ import { Menu, Icon } from 'antd' import { Link } from 'react-router-dom' import { arrayToTree, queryArray } from 'utils' import pathToRegexp from 'path-to-regexp' -import styles from './Layout.less' const { SubMenu } = Menu let openKeysFlag = false @@ -124,7 +123,6 @@ const Menus = ({ mode={siderFold ? 'vertical' : 'inline'} theme={darkTheme ? 'dark' : 'light'} selectedKeys={defaultSelectedKeys} - className={styles.sidemenu} > {menuItems}