需要在组件加样式 .el-menu-vertical-demo:not(.el-menu--collapse){ width: 250px; //宽度自己掌握 height: 100%; } 希望能帮到你