.el-menu-vertical-demo:not(.el-menu--collapse) { width: 200px; min-height: 400px; height: 100vh;//添加此属性 }