1. The vertical navigation sidebar goes out of the white side
solve:
Add style to el-menu tag
/*左侧导航栏*/
.el-menu-vertical-demo {
width: 200px;
border: 0 !important; /*垂直时,去除右侧白边*/
}
2. The vertical navigation bar removes the scroll bar
Add a layer of <el-aside> outside the <el-menu> tag like this:
Then add the style:
.el-aside::-webkit-scrollbar {
display: none;
}