作者 朱兆平

菜单高度不够时的滚动问题

... ... @@ -47,7 +47,7 @@
<!--导航菜单-->
<el-menu :default-active="$route.path" class="el-menu-vertical-demo" @open="handleopen"
@close="handleclose" @select="handleselect" unique-opened router v-show="!collapsed"
style="min-width: 230px">
style="min-width: 230px;overflow-y: scroll">
<template v-for="(item,index) in $router.options.routes" v-if="!item.hidden">
<el-submenu :index="index+''" v-if="!item.leaf">
<template slot="title"><i :class="item.iconCls"></i>{{item.name}}</template>
... ... @@ -444,7 +444,6 @@
aside {
flex: 0 0 230px;
width: 230px;
/*overflow-y: scroll;*/
background: #606060;
// position: absolute;
// top: 0px;
... ...