之前引入的方式是
import styles from './index.less';
然后我在index.less里修改,沒有一點反應,后來發現上面引入的方式只是把樣式導進去,用不用不清楚,這個時候需要加上
import './index.less';
然后index.less里面的樣式就可以生效了
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{
background-color:#2970FF;
}